tty: hvc_xen: hide xen_console_remove when unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 21:54:58 +0000 (22:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 07:41:17 +0000 (23:41 -0800)
commite36ae3439936e13c33f5841c7c2c1a9875acbb6d
tree01ecc48f0cc462b8b3de4d78e411c1325f2af80d
parent05ead49691d245f67bdd1b30cab5d9af522ac884
tty: hvc_xen: hide xen_console_remove when unused

xencons_disconnect_backend() is only called from xen_console_remove(),
which is conditionally compiled, so we get a harmless warning when
CONFIG_HVC_XEN_FRONTEND is unset:

hvc/hvc_xen.c:350:12: error: 'xen_console_remove' defined but not used [-Werror=unused-function]

This moves the function down into the same #ifdef section to silence
the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_xen.c
This page took 0.025267 seconds and 5 git commands to generate.