summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-02 13:41:25 +0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-02 13:41:25 +0400
commit4f79c3ffc6e04623711e86cf9a0e09e4aad8cb36 (patch)
treecbb828ab47b9350ea57726b7be8d98fe21f23de7 /include/linux/compiler.h
parent2683e88413977a7f382106f8e8b3b684a597c761 (diff)
downloadlinux-4f79c3ffc6e04623711e86cf9a0e09e4aad8cb36.tar.xz
Guard some of linux/compiler.h with #ifdef __KERNEL__
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index f23d3c6fc2c0..1234be9024a2 100644
--- 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 */