aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/sections.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/sections.h')
-rw-r--r--include/asm-powerpc/sections.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/sections.h b/include/asm-powerpc/sections.h
index 47be2ac2a925ce..916018e425c4dc 100644
--- a/include/asm-powerpc/sections.h
+++ b/include/asm-powerpc/sections.h
@@ -1,5 +1,6 @@
#ifndef _ASM_POWERPC_SECTIONS_H
#define _ASM_POWERPC_SECTIONS_H
+#ifdef __KERNEL__
#include <asm-generic/sections.h>
@@ -17,4 +18,5 @@ static inline int in_kernel_text(unsigned long addr)
#endif
+#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_SECTIONS_H */