drivers/char: protect the asm/vpl011.h include
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 24 May 2019 08:29:04 +0000 (10:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 May 2019 08:29:04 +0000 (10:29 +0200)
The only use of asm/vpl011.h is protected by the CONFIG_SBSA_VUART_CONSOLE
define so lets protect the include as well.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/char/console.c

index 38ecd9c015b0a5a50dd5a609a11cac5fe161deaa..d728e737d1d114766a0cd8663132f76648913110 100644 (file)
@@ -36,7 +36,8 @@
 #ifdef CONFIG_X86
 #include <xen/consoled.h>
 #include <asm/guest.h>
-#else
+#endif
+#ifdef CONFIG_SBSA_VUART_CONSOLE
 #include <asm/vpl011.h>
 #endif