Skip to content

Commit

Permalink
c6x: kernel: setup: Include "linux/console.h"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chen Gang authored and Mark Salter committed Mar 3, 2015
1 parent c517d83 commit 3591276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/c6x/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3591276

Please sign in to comment.