Move a kernel include into __KERNEL__ protected section
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 24 Apr 2008 13:26:00 +0000 (13:26 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 24 Apr 2008 13:26:00 +0000 (13:26 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3570 0192ed92-7a03-0410-a25b-9323aeb14dbd

include/compat.h

index f50b3ca5beb571e1001b9b1c0cbe47d1c25a2e11..2aafc7dc1a0990f81c8617a17b53b3c5b46ac95c 100644 (file)
@@ -43,6 +43,7 @@
 #include <linux/types.h>
 #include <linux/time.h>
 #include <linux/netdevice.h>
+#include <linux/kernel.h>
 #endif
 
 #if !defined(__KERNEL__) || !defined (__bitwise)
@@ -80,7 +81,6 @@
 #define        NBBY    8                       /* number of bits/byte */
 
 /* roundup() appears in Linux 2.6.18 */
-#include <linux/kernel.h>
 #ifndef roundup
 #define        roundup(x, y)   ((((x)+((y)-1))/(y))*(y))  /* to any y */
 #endif