]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sa1100: make sa1100_register_uart_fns a function
authorArnd Bergmann <arnd@arndb.de>
Thu, 25 Feb 2016 14:33:46 +0000 (15:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2016 00:11:14 +0000 (16:11 -0800)
commit980d03741904d3e499589bea944e9c59c088e348
tree4f74ccdd47473e0c2355c8f494b98467b8181a18
parentee9a97030fccd75b2e8e95549d27e3c6202b5d5e
serial: sa1100: make sa1100_register_uart_fns a function

Calling sa1100_register_uart_fns() leaves the port structure
unused when CONFIG_SERIAL_SA1100 is disabled, and we get a
compiler warning about that:

arch/arm/mach-sa1100/badge4.c:317:31: warning: 'badge4_port_fns' defined but not used [-Wunused-variable]
 static struct sa1100_port_fns badge4_port_fns __initdata = {

This turns the two empty macros into empty inline functions,
which has the same effect, but lets the compiler know that the
variables are intentionally unused.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/platform_data/sa11x0-serial.h