diff options
author | Justin P. Mattock <justinmattock@gmail.com> | 2010-07-02 01:28:27 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-11 23:38:56 +0400 |
commit | 69c8f52b3897f2faf8510ea7ede8fffabe26c531 (patch) | |
tree | 89589a401031070707721932421ba7eb1cc85bd6 /include/linux/kernel.h | |
parent | 15676295e1189d87b9e5589549492c4f0ae46336 (diff) | |
download | linux-69c8f52b3897f2faf8510ea7ede8fffabe26c531.tar.xz |
fix #warning about using kernel headers in userpsace
Move the preprocessor #warning message:
warning: #warning Attempt to use kernel headers from user space,
see http://kernelnewbies.org/KernelHeaders
from kernel.h to types.h.
And also fixe the #warning message due to the preprocessor not being able to
read the web address due to it thinking it was the start of a comment. also
remove the extra #ifndef _KERNEL_ since it's already there.
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 6 |
1 files changed, 0 insertions, 6 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); #endif /* __KERNEL__ */ -#ifndef __EXPORTED_HEADERS__ -#ifndef __KERNEL__ -#warning Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders -#endif /* __KERNEL__ */ -#endif /* __EXPORTED_HEADERS__ */ - #define SI_LOAD_SHIFT 16 struct sysinfo { long uptime; /* Seconds since boot */ |