[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <51C8F948.2040204@asianux.com>
Date: Tue, 25 Jun 2013 09:58:32 +0800
From: Chen Gang <gang.chen@...anux.com>
To: msalter@...hat.com, a-jacquiot@...com
CC: jkc@...hat.com, linux-c6x-dev@...ux-c6x.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linux-Arch <linux-arch@...r.kernel.org>
Subject: [PATCH] arch: c6x: kernel: include "linux/console.h" when 'VT' and
'DUMMY_CONSOLE' enabled.
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@...anux.com>
---
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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists