summary refs log tree commit diff
path: root/arch/c6x
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2015-03-03 11:33:15 -0500
committerMark Salter <msalter@redhat.com>2015-03-03 11:33:15 -0500
commit3591276d16f8e568449e4b6c719165ad2decf222 (patch)
tree6a6fb90fd9edd0d5d6ddf8e0fd957afbfbaded6e /arch/c6x
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
downloadlinux-3591276d16f8e568449e4b6c719165ad2decf222.tar.gz
c6x: kernel: setup: Include "linux/console.h"
Or c6x will cause building break for allmodconfig, the related error:

    CC      arch/c6x/kernel/setup.o
  arch/c6x/kernel/setup.c: In function 'setup_arch':
  arch/c6x/kernel/setup.c:433:2: error: 'conswitchp' undeclared (first use in this function)
    conswitchp = &dummy_con;
    ^
  arch/c6x/kernel/setup.c:433:2: note: each undeclared identifier is reported only once for each function it appears in
  arch/c6x/kernel/setup.c:433:16: error: 'dummy_con' undeclared (first use in this function)
    conswitchp = &dummy_con;
                  ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
[removed unnecessary #ifdef around include]
Signed-off-by: Mark Salter <msalter@redhat.com>
Diffstat (limited to 'arch/c6x')
-rw-r--r--arch/c6x/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c
index 757128868d43..f016128ece13 100644
--- a/arch/c6x/kernel/setup.c
+++ b/arch/c6x/kernel/setup.c
@@ -26,7 +26,7 @@
 #include <linux/cpu.h>
 #include <linux/fs.h>
 #include <linux/of.h>
-
+#include <linux/console.h>
 
 #include <asm/sections.h>
 #include <asm/div64.h>