--- zzzz-none-000/linux-2.6.32.61/drivers/char/tty_buffer.c 2013-06-10 09:43:48.000000000 +0000 +++ ar10-7272-687/linux-2.6.32.61/drivers/char/tty_buffer.c 2011-05-25 13:51:48.000000000 +0000 @@ -247,7 +247,7 @@ { int copied = 0; do { - int goal = min(size - copied, TTY_BUFFER_PAGE); + int goal = min((int)size - copied, (int)TTY_BUFFER_PAGE); int space = tty_buffer_request_room(tty, goal); struct tty_buffer *tb = tty->buf.tail; /* If there is no space then tb may be NULL */ @@ -284,7 +284,7 @@ { int copied = 0; do { - int goal = min(size - copied, TTY_BUFFER_PAGE); + int goal = min((int)size - copied, (int)TTY_BUFFER_PAGE); int space = tty_buffer_request_room(tty, goal); struct tty_buffer *tb = tty->buf.tail; /* If there is no space then tb may be NULL */