提交 4f79c3ff 编写于 作者: D David Woodhouse

Guard some of linux/compiler.h with #ifdef __KERNEL__

Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 2683e884
......@@ -78,6 +78,7 @@ extern void __chk_io_ptr(void __iomem *);
#endif /* __ASSEMBLY__ */
#ifdef __KERNEL__
/*
* Allow us to mark functions as 'deprecated' and have gcc emit a nice
* warning for each use, in hopes of speeding the functions removal.
......@@ -153,4 +154,5 @@ extern void __chk_io_ptr(void __iomem *);
#define __always_inline inline
#endif
#endif /* __KERNEL__ */
#endif /* __LINUX_COMPILER_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部