]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty/console: fix warnings in drivers/tty/serial/kgdboc.c
authorArnd Bergmann <arnd@arndb.de>
Fri, 28 Sep 2012 21:36:14 +0000 (23:36 +0200)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 28 Sep 2012 21:50:05 +0000 (16:50 -0500)
commit08f9553d3abd8a4aa5adbea393940b1dd123393e
tree46d62c7691b28b45b3e6f00054f6b92f4b55d0c5
parent15d7ea09071e85388729062e4df0224593a6db5d
tty/console: fix warnings in drivers/tty/serial/kgdboc.c

The con_debug_leave/con_debug_enter functions are stubbed out
by defining them to (0), which causes harmless build warnings.
Using proper inline functions is the normal way to deal with
this.

Without this patch, building the ARM bcm2835_defconfig results in:

drivers/tty/serial/kgdboc.c: In function 'kgdboc_pre_exp_handler':
drivers/tty/serial/kgdboc.c:279:3: warning: statement with no effect [-Wunused-value]
drivers/tty/serial/kgdboc.c: In function 'kgdboc_post_exp_handler':
drivers/tty/serial/kgdboc.c:293:3: warning: statement with no effect [-Wunused-value]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
include/linux/console.h