]> git.karo-electronics.de Git - linux-beck.git/commit
serial/omap: mark wait_for_xmitr as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Jan 2016 20:59:23 +0000 (21:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 07:04:51 +0000 (23:04 -0800)
commitb4a512b8bf7185787e291cddad3b6457b2367120
treea1b6e3b6b31513ce03df525cb78d740bcc140b14
parent308bbc9ab838d0ace0298268c7970ba9513e2c65
serial/omap: mark wait_for_xmitr as __maybe_unused

The wait_for_xmitr() function is only used if CONFIG_CONSOLE_POLL
or CONFIG_SERIAL_OMAP_CONSOLE are set, but when both are disabled,
the compiler warns about it being unused:

drivers/tty/serial/omap-serial.c:1168:13: warning: 'wait_for_xmitr' defined but not used [-Wunused-func

We could add more #ifdefs to work around it, but adding __maybe_unused
seems nicer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 2172076d2399 ("serial/omap-serial: Deinline wait_for_xmitr, save 165 bytes")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c