From 376b07691ec54a44925b4fee024c089b8b7b6616 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sun, 3 Apr 2005 18:06:05 -0700 Subject: [PATCH] generic_serial.c portability fix gs_wait_tx_flushed() should have its second argument (timeout) unsigned long, not int. One of the callers passes it MAX_SCHEDULE_TIMEOUT and function itself compares argument with that value. Since that's LONG_MAX, we get breakage on all 64bit platforms. Signed-off-by: Linus Torvalds Signed-off-by: Al Viro --- drivers/char/generic_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/generic_serial.c b/drivers/char/generic_serial.c index 5c8600b8dbe6b..204a7302a4a95 100644 --- a/drivers/char/generic_serial.c +++ b/drivers/char/generic_serial.c @@ -296,7 +296,7 @@ static int gs_real_chars_in_buffer(struct tty_struct *tty) } -static int gs_wait_tx_flushed (void * ptr, int timeout) +static int gs_wait_tx_flushed (void * ptr, unsigned long timeout) { struct gs_port *port = ptr; unsigned long end_jiffies; -- cgit 1.2.3-korg