From: Chen Gang Date: Wed, 27 Nov 2013 05:28:36 +0000 (+0800) Subject: arch: hexagon: include: uapi: asm: setup.h add swith macro __KERNEL__ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d7e6a1dbecd58157d952707c9ad6846b96c7d45;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arch: hexagon: include: uapi: asm: setup.h add swith macro __KERNEL__ Define dummy '__init' instead of include "linux/init.h" if !__KERNEL__, or can not pass checking. The related error (with allmodconfig under hexagon): CHECK include/asm (34 files) usr/include/asm/setup.h:22: included file 'linux/init.h' is not exported Signed-off-by: Chen Gang Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/include/uapi/asm/setup.h b/arch/hexagon/include/uapi/asm/setup.h index e48285e4af96..7e3952d6221c 100644 --- a/arch/hexagon/include/uapi/asm/setup.h +++ b/arch/hexagon/include/uapi/asm/setup.h @@ -19,7 +19,12 @@ #ifndef _ASM_SETUP_H #define _ASM_SETUP_H +#ifdef __KERNEL__ #include +#else +#define __init +#endif + #include extern char external_cmdline_buffer;