lkml.org 
[lkml]   [2015]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] c6x: kernel: setup: Include "linux/console.h" if both VT and DUMMY_CONSOLE enabled
From
Date
On Sun, 2015-03-01 at 15:59 +0800, Chen Gang wrote:
> 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>
> ---
> arch/c6x/kernel/setup.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c
> index 7571288..a5f6e0e 100644
> --- a/arch/c6x/kernel/setup.c
> +++ b/arch/c6x/kernel/setup.c
> @@ -26,7 +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

No need for the #ifdefs around the include.
I removed them and pulled this into the c6x tree.

Thanks!

>
> #include <asm/sections.h>
> #include <asm/div64.h>




\
 
 \ /
  Last update: 2015-03-03 18:01    [W:0.045 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site