Index: kernel/arch/mips64/include/mm/frame.h
===================================================================
--- kernel/arch/mips64/include/mm/frame.h	(revision c6f087267a5341520c2f7f049eae7b1a387ecb14)
+++ kernel/arch/mips64/include/mm/frame.h	(revision eb66f2363ca8db8691ed55d9584d3122c2853502)
@@ -39,4 +39,5 @@
 #define FRAME_SIZE   (1 << FRAME_WIDTH)
 
+#ifdef KERNEL
 #ifndef __ASM__
 
@@ -45,4 +46,5 @@
 
 #endif /* __ASM__ */
+#endif /* KERNEL */
 
 #endif
Index: kernel/arch/mips64/include/mm/page.h
===================================================================
--- kernel/arch/mips64/include/mm/page.h	(revision c6f087267a5341520c2f7f049eae7b1a387ecb14)
+++ kernel/arch/mips64/include/mm/page.h	(revision eb66f2363ca8db8691ed55d9584d3122c2853502)
@@ -50,4 +50,5 @@
 #endif
 
+#ifdef KERNEL
 #ifndef __ASM__
 
@@ -55,4 +56,5 @@
 
 #endif /* __ASM__ */
+#endif /* KERNEL */
 
 #endif
