projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move a kernel include into __KERNEL__ protected section
[madwifi/.git]
/
include
/
compat.h
diff --git
a/include/compat.h
b/include/compat.h
index f50b3ca5beb571e1001b9b1c0cbe47d1c25a2e11..2aafc7dc1a0990f81c8617a17b53b3c5b46ac95c 100644
(file)
--- a/
include/compat.h
+++ b/
include/compat.h
@@
-43,6
+43,7
@@
#include <linux/types.h>
#include <linux/time.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/time.h>
#include <linux/netdevice.h>
+#include <linux/kernel.h>
#endif
#if !defined(__KERNEL__) || !defined (__bitwise)
#endif
#if !defined(__KERNEL__) || !defined (__bitwise)
@@
-80,7
+81,6
@@
#define NBBY 8 /* number of bits/byte */
/* roundup() appears in Linux 2.6.18 */
#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
#ifndef roundup
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */
#endif