um: fix a build error
I just ran across the same build error, does
something like this look reasonable? Only build
and boot tested.
This fixes the following build error:
CC arch/um/drivers/line.o
arch/um/drivers/line.c: In function ‘line_write_interrupt’:
arch/um/drivers/line.c:366: error: ‘struct tty_ldisc’ has no member named ‘write_wakeup’
arch/um/drivers/line.c:367: error: ‘struct tty_ldisc’ has no member named ‘write_wakeup’
make[1]: *** [arch/um/drivers/line.o] Error 1
make: *** [arch/um/drivers] Error 2
arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +2 -4
@@ -362,10 +362,8 @@ static irqreturn_t line_write_interrupt(if (tty ==NULL )return IRQ_NONE ; -if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags) && - (tty->ldisc.write_wakeup !=NULL )) - (tty->ldisc.write_wakeup)(tty); - +if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags)) +tty_wakeup (tty);/* * BLOCKING mode * In blocking mode, everything sleeps on tty->write_wait.
Alan Cox
Acked-byQuoted 5 lines
Signed-off-by Eric Sesterhenn <[email protected]>
arch/um/drivers/line.c static irqreturn_t line_write_interrupt( · line 366
Quoted 9 lines
arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +2
-4@@ -362,10 +362,8 @@ static irqreturn_t line_write_interrupt(if (tty ==NULL )return IRQ_NONE ; -if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags) && - (tty->ldisc.write_wakeup !=NULL )) - (tty->ldisc.write_wakeup)(tty); - +if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags)) +tty_wakeup (tty);
Sorry I should have been clearer - you don't want the test_bit either.
however as it is still right but you can stick my Ack on a version without the if too.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 8 lines · Alan Cox
Quoted 8 lines
Signed-off-by Eric Sesterhenn <[email protected]>arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +0
-0@@ -362,10 +362,8 @@ static irqreturn_t line_write_interrupt(if (tty ==NULL )return IRQ_NONE ;
Quoted 9 lines
arch/um/drivers/line.c static irqreturn_t line_write_interrupt( · line 366
Quoted 6 lines
arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +2
-4-if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags) && - (tty->ldisc.write_wakeup !=NULL )) - (tty->ldisc.write_wakeup)(tty); - +if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags)) +tty_wakeup (tty);Sorry I should have been clearer - you don't want the
test_biteither.
Sure, tty_wakeup() already does that test.
And, tty_wakeup() also does wake_up_interruptible(), so I think the wake_up_interruptible() below can also be removed, probably.
Thanks.
Signature · 12 lines
The opposite of love is not hate, but indifference. --Elie Wiesel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 8 lines · Alan Cox
Quoted 8 lines
Signed-off-by Eric Sesterhenn <[email protected]>arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +0
-0@@ -362,10 +362,8 @@ static irqreturn_t line_write_interrupt(if (tty ==NULL )return IRQ_NONE ;
Quoted 9 lines
arch/um/drivers/line.c static irqreturn_t line_write_interrupt( · line 366
Quoted 6 lines
arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +2
-4-if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags) && - (tty->ldisc.write_wakeup !=NULL )) - (tty->ldisc.write_wakeup)(tty); - +if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags)) +tty_wakeup (tty);Sorry I should have been clearer - you don't want the
test_biteither.
What about the below one?
---
arch/um/drivers/line.c +1 -13
@@ -362,19 +362,7 @@ static irqreturn_t line_write_interrupt(int irq, void *data)if (tty ==NULL )return IRQ_NONE ; -if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags) && - (tty->ldisc.write_wakeup !=NULL )) - (tty->ldisc.write_wakeup)(tty); - -/* -* BLOCKING mode -* In blocking mode, everything sleeps on tty->write_wait. -* Sleeping in the console driver would break non-blocking -* writes. -*/ - -if (waitqueue_active (&tty->write_wait)) -wake_up_interruptible (&tty->write_wait); +tty_wakeup (tty);return IRQ_HANDLED ; }
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Alan Cox
Acked-byQuoted 19 lines · On Tue, 22 Jul 2008 18:35:09 +0100 WANG Cong <[email protected]> wrote:
Quoted 8 lines · Alan Cox
Quoted 8 lines
Signed-off-by Eric Sesterhenn <[email protected]>arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +0
-0@@ -362,10 +362,8 @@ static irqreturn_t line_write_interrupt(if (tty ==NULL )return IRQ_NONE ;Quoted 9 lines
arch/um/drivers/line.c static irqreturn_t line_write_interrupt(int irq, void *data) · line 365
Quoted 6 lines
arch/um/drivers/line.c renamed from arch/um/drivers/line.c.orig +2
-4-if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags) && - (tty->ldisc.write_wakeup !=NULL )) - (tty->ldisc.write_wakeup)(tty); - +if (test_bit (TTY_DO_WRITE_WAKEUP , &tty->flags)) +tty_wakeup (tty);Sorry I should have been clearer - you don't want the
test_biteither.
Quoted 3 lines
What about the below one?
Signed-off-by WANG Cong <[email protected]>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel