public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch: c6x: kernel: include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled.
@ 2013-06-25  1:58 Chen Gang
  2013-06-25  7:06 ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2013-06-25  1:58 UTC (permalink / raw)
  To: msalter, a-jacquiot
  Cc: jkc, linux-c6x-dev, linux-kernel@vger.kernel.org, Linux-Arch

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@asianux.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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-25  7:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25  1:58 [PATCH] arch: c6x: kernel: include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled Chen Gang
2013-06-25  7:06 ` Geert Uytterhoeven
2013-06-25  7:34   ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox