aboutsummaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2013-11-27 00:28:36 -0500
committerRichard Kuo <rkuo@codeaurora.org>2014-04-04 19:20:00 -0400
commit8d7e6a1dbecd58157d952707c9ad6846b96c7d45 (patch)
treeddc3a1bef654a080b17ace2798e5a7f3611cfc36 /arch/hexagon
parent6becd400f8450062b891dee7e68b14f203e792a5 (diff)
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 <gang.chen.5i5j@gmail.com> Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r--arch/hexagon/include/uapi/asm/setup.h5
1 files changed, 5 insertions, 0 deletions
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 @@
19#ifndef _ASM_SETUP_H 19#ifndef _ASM_SETUP_H
20#define _ASM_SETUP_H 20#define _ASM_SETUP_H
21 21
22#ifdef __KERNEL__
22#include <linux/init.h> 23#include <linux/init.h>
24#else
25#define __init
26#endif
27
23#include <asm-generic/setup.h> 28#include <asm-generic/setup.h>
24 29
25extern char external_cmdline_buffer; 30extern char external_cmdline_buffer;