Index: kernel/arch/mips32/include/byteorder.h
===================================================================
--- kernel/arch/mips32/include/byteorder.h	(revision 73a1fe5b91c30e933651a7a22af4e5e3b230a12e)
+++ kernel/arch/mips32/include/byteorder.h	(revision 7bf7ef77b559bde9e785ddbc26c19e06dd0ff54c)
@@ -36,21 +36,22 @@
 #define KERN_mips32_BYTEORDER_H_
 
-#include <arch/types.h>
 #include <byteorder.h>
 
 #ifdef BIG_ENDIAN
-static inline uint64_t uint64_t_le2host(uint64_t n)
-{
-	return uint64_t_byteorder_swap(n);
-}
 
-static inline unative_t unative_t_le2host(unative_t n)
-{
-	return uint32_t_byteorder_swap(n);
-}
+#define uint32_t_le2host(n)		uint64_t_byteorder_swap(n)
+#define uint64_t_le2host(n)		uint32_t_byteorder_swap(n)
+
+#define uint32_t_be2host(n)		(n)
+#define uint64_t_be2host(n)		(n)
 
 #else
-#  define unative_t_le2host(n)		(n)
-#  define uint64_t_le2host(n)		(n)
+
+#define uint32_t_le2host(n)		(n)
+#define uint64_t_le2host(n)		(n)
+
+#define uint32_t_be2host(n)		uint64_t_byteorder_swap(n)
+#define uint64_t_be2host(n)		uint32_t_byteorder_swap(n)
+
 #endif
 
