]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
c6x: kernel: setup: Include "linux/console.h"
authorChen Gang <gang.chen.5i5j@gmail.com>
Tue, 3 Mar 2015 16:33:15 +0000 (11:33 -0500)
committerMark Salter <msalter@redhat.com>
Tue, 3 Mar 2015 16:33:15 +0000 (11:33 -0500)
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>
arch/c6x/kernel/setup.c

index 757128868d4324133c2ee0201d54fa40908b76f1..f016128ece13afa63fae9090e2e9d9c3018a4738 100644 (file)
@@ -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>