summaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-25 22:54:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-06 23:41:17 -0800
commite36ae3439936e13c33f5841c7c2c1a9875acbb6d (patch)
tree01ecc48f0cc462b8b3de4d78e411c1325f2af80d /drivers/tty/hvc
parent05ead49691d245f67bdd1b30cab5d9af522ac884 (diff)
downloadlinux-e36ae3439936e13c33f5841c7c2c1a9875acbb6d.tar.gz
linux-e36ae3439936e13c33f5841c7c2c1a9875acbb6d.tar.bz2
linux-e36ae3439936e13c33f5841c7c2c1a9875acbb6d.zip
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>
Diffstat (limited to 'drivers/tty/hvc')
-rw-r--r--drivers/tty/hvc/hvc_xen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c
index fa816b7193b6..11725422dacb 100644
--- a/drivers/tty/hvc/hvc_xen.c
+++ b/drivers/tty/hvc/hvc_xen.c
@@ -323,6 +323,7 @@ void xen_console_resume(void)
}
}
+#ifdef CONFIG_HVC_XEN_FRONTEND
static void xencons_disconnect_backend(struct xencons_info *info)
{
if (info->irq > 0)
@@ -363,7 +364,6 @@ static int xen_console_remove(struct xencons_info *info)
return 0;
}
-#ifdef CONFIG_HVC_XEN_FRONTEND
static int xencons_remove(struct xenbus_device *dev)
{
return xen_console_remove(dev_get_drvdata(&dev->dev));