diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kernel.h | 6 | ||||
-rw-r--r-- | include/linux/types.h | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 8317ec4b9f3b..bd8501a8ca1c 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -728,12 +728,6 @@ extern int do_sysinfo(struct sysinfo *info); | |||
728 | 728 | ||
729 | #endif /* __KERNEL__ */ | 729 | #endif /* __KERNEL__ */ |
730 | 730 | ||
731 | #ifndef __EXPORTED_HEADERS__ | ||
732 | #ifndef __KERNEL__ | ||
733 | #warning Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders | ||
734 | #endif /* __KERNEL__ */ | ||
735 | #endif /* __EXPORTED_HEADERS__ */ | ||
736 | |||
737 | #define SI_LOAD_SHIFT 16 | 731 | #define SI_LOAD_SHIFT 16 |
738 | struct sysinfo { | 732 | struct sysinfo { |
739 | long uptime; /* Seconds since boot */ | 733 | long uptime; /* Seconds since boot */ |
diff --git a/include/linux/types.h b/include/linux/types.h index 23d237a075e2..331d8baabcf2 100644 --- a/include/linux/types.h +++ b/include/linux/types.h | |||
@@ -8,7 +8,10 @@ | |||
8 | 8 | ||
9 | #define DECLARE_BITMAP(name,bits) \ | 9 | #define DECLARE_BITMAP(name,bits) \ |
10 | unsigned long name[BITS_TO_LONGS(bits)] | 10 | unsigned long name[BITS_TO_LONGS(bits)] |
11 | 11 | #else | |
12 | #ifndef __EXPORTED_HEADERS__ | ||
13 | #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" | ||
14 | #endif /* __EXPORTED_HEADERS__ */ | ||
12 | #endif | 15 | #endif |
13 | 16 | ||
14 | #include <linux/posix_types.h> | 17 | #include <linux/posix_types.h> |