From: David Woodhouse Date: Tue, 2 May 2006 09:41:25 +0000 (+0100) Subject: Guard some of linux/compiler.h with #ifdef __KERNEL__ X-Git-Tag: v2.6.18-rc1~1103^2~24 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f79c3ffc6e04623711e86cf9a0e09e4aad8cb36;p=linux-2.6 Guard some of linux/compiler.h with #ifdef __KERNEL__ Signed-off-by: David Woodhouse --- diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f23d3c6fc2..1234be9024 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 */