Need include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled (e.g allmodconfig). The related error: arch/c6x/kernel/setup.c: In function ‘setup_arch’: arch/c6x/kernel/setup.c:442:2: error: ‘conswitchp’ undeclared (first use in this function) arch/c6x/kernel/setup.c:442:2: note: each undeclared identifier is reported only once for each function it appears in arch/c6x/kernel/setup.c:442:16: error: ‘dummy_con’ undeclared (first use in this function) Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx> --- arch/c6x/kernel/setup.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c index f4e72bd..1411141 100644 --- a/arch/c6x/kernel/setup.c +++ b/arch/c6x/kernel/setup.c @@ -26,6 +26,9 @@ #include <linux/cpu.h> #include <linux/fs.h> #include <linux/of.h> +#if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE) +#include <linux/console.h> +#endif #include <asm/sections.h> -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html