Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

+2
+2
include/linux/compiler.h
··· 78 78 79 79 #endif /* __ASSEMBLY__ */ 80 80 81 + #ifdef __KERNEL__ 81 82 /* 82 83 * Allow us to mark functions as 'deprecated' and have gcc emit a nice 83 84 * warning for each use, in hopes of speeding the functions removal. ··· 154 153 #define __always_inline inline 155 154 #endif 156 155 156 + #endif /* __KERNEL__ */ 157 157 #endif /* __LINUX_COMPILER_H */