]> git.hungrycats.org Git - linux/commitdiff
[PATCH] riscom8 build fix
authorAdrian Bunk <bunk@fs.tum.de>
Wed, 8 Sep 2004 00:57:04 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 8 Sep 2004 00:57:04 +0000 (17:57 -0700)
drivers/char/riscom8.c:1178: macro `min_t' used with only 2 args

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/riscom8.c

index aa8d5bd51dcfc993ad6c0dcead3aeb8bebff53ae..a1e85b918740216e96ceece9762d73f9d006d0dd 100644 (file)
@@ -1174,7 +1174,7 @@ static int rc_write(struct tty_struct * tty, int from_user,
                        }
 
                        cli();
-                       c = min_t(c, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1,
+                       c = min_t(int, c, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1,
                                         SERIAL_XMIT_SIZE - port->xmit_head));
                        memcpy(port->xmit_buf + port->xmit_head, tmp_buf, c);
                        port->xmit_head = (port->xmit_head + c) & (SERIAL_XMIT_SIZE-1);