Commit 185764d1 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] riscom8 build fix

drivers/char/riscom8.c:1178: macro `min_t' used with only 2 args
Signed-off-by: default avatarAdrian Bunk <bunk@fs.tum.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f1311f43
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment