summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/mmzone.h')
-rw-r--r--include/asm-powerpc/mmzone.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/mmzone.h b/include/asm-powerpc/mmzone.h
index 54958d6cae04..88d70bae7769 100644
--- a/include/asm-powerpc/mmzone.h
+++ b/include/asm-powerpc/mmzone.h
@@ -6,6 +6,7 @@
*/
#ifndef _ASM_MMZONE_H_
#define _ASM_MMZONE_H_
+#ifdef __KERNEL__
#include <linux/config.h>
@@ -47,4 +48,5 @@ extern unsigned long max_pfn;
extern int __init early_pfn_to_nid(unsigned long pfn);
#endif
+#endif /* __KERNEL__ */
#endif /* _ASM_MMZONE_H_ */