]> git.baikalelectronics.ru Git - kernel.git/commit
tty_buffer: Fix distinct type warning
authorFang Wenqi <anton.fang@gmail.com>
Tue, 9 Mar 2010 10:54:28 +0000 (18:54 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:17:55 +0000 (07:17 -0700)
commit4ef77a303f866a9aea09326635bdee8c2f37fbdc
tree64fe0f614941804519cb0f7849c851540d593d0a
parent0b5ab78c2dbf0f6271302e282c2cec389e572105
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>
drivers/char/tty_buffer.c