projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2683e88
)
Guard some of linux/compiler.h with #ifdef __KERNEL__
author
David Woodhouse
<dwmw2@infradead.org>
Tue, 2 May 2006 09:41:25 +0000
(10:41 +0100)
committer
David Woodhouse
<dwmw2@infradead.org>
Tue, 2 May 2006 09:41:25 +0000
(10:41 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
include/linux/compiler.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/compiler.h
b/include/linux/compiler.h
index f23d3c6fc2c06ea9766ec18a8580f1de5234975e..1234be9024a2617fecb981be9d1bfdae2fcdcf1c 100644
(file)
--- a/
include/linux/compiler.h
+++ b/
include/linux/compiler.h
@@
-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 */