mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
6becd400f8
commit
8d7e6a1dbe
1 changed files with 5 additions and 0 deletions
|
@ -19,7 +19,12 @@
|
||||||
#ifndef _ASM_SETUP_H
|
#ifndef _ASM_SETUP_H
|
||||||
#define _ASM_SETUP_H
|
#define _ASM_SETUP_H
|
||||||
|
|
||||||
|
#ifdef __KERNEL__
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
#else
|
||||||
|
#define __init
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <asm-generic/setup.h>
|
#include <asm-generic/setup.h>
|
||||||
|
|
||||||
extern char external_cmdline_buffer;
|
extern char external_cmdline_buffer;
|
||||||
|
|
Loading…
Reference in a new issue