tty_buffer: Fix distinct type warning

CC drivers/char/tty_buffer.o
drivers/char/tty_buffer.c: In function ‘tty_insert_flip_string_fixed_flag’:
drivers/char/tty_buffer.c:251: warning: comparison of distinct pointer types lacks a cast
drivers/char/tty_buffer.c: In function ‘tty_insert_flip_string_flags’:
drivers/char/tty_buffer.c:288: warning: comparison of distinct pointer types lacks a cast

Fix it by replacing min() with min_t() in tty_insert_flip_string_flags and
tty_insert_flip_string_fixed_flag().

Signed-off-by: Fang Wenqi <antonf@turbolinux.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by Fang Wenqi and committed by Greg Kroah-Hartman d4bee0a6 e74d098c

+2 -2
+2 -2
drivers/char/tty_buffer.c
··· 248 248 { 249 249 int copied = 0; 250 250 do { 251 - int goal = min(size - copied, TTY_BUFFER_PAGE); 251 + int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); 252 252 int space = tty_buffer_request_room(tty, goal); 253 253 struct tty_buffer *tb = tty->buf.tail; 254 254 /* If there is no space then tb may be NULL */ ··· 285 285 { 286 286 int copied = 0; 287 287 do { 288 - int goal = min(size - copied, TTY_BUFFER_PAGE); 288 + int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); 289 289 int space = tty_buffer_request_room(tty, goal); 290 290 struct tty_buffer *tb = tty->buf.tail; 291 291 /* If there is no space then tb may be NULL */