[PATCH]kernel.h Fix #warning message web address.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Justin P. Mattock
Date: Tuesday, June 29, 2010 - 12:37 pm

Playing around with a printk program I noticed that the #warning
message is incomplete(when using kernel headers for userspace):

 gcc printk.c -o printk
In file included from printk.c:3:
include/linux/kernel.h:733:2: warning: #warning Attempt to use kernel headers from user space, see http:

My guess for the web address not being displayed is "//" is treated as a comment.
So after changing "http://" to "www." I get the web address.(using firefox with this
address takes me right to the location). The warning looks like this:

In file included from printk.c:3:
warning: #warning Attempt to use kernel headers from user space, see www.kernelnewbies.org/KernelHeaders 
 
 Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

---
 include/linux/kernel.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 8317ec4..768196a 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -730,7 +730,7 @@ extern int do_sysinfo(struct sysinfo *info);
 
 #ifndef __EXPORTED_HEADERS__
 #ifndef __KERNEL__
-#warning Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders
+#warning Attempt to use kernel headers from user space, see www.kernelnewbies.org/KernelHeaders
 #endif /* __KERNEL__ */
 #endif /* __EXPORTED_HEADERS__ */
 
-- 
1.6.5.2.180.gc5b3e

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH]kernel.h Fix #warning message web address., Justin P. Mattock, (Tue Jun 29, 12:37 pm)
Re: [PATCH]kernel.h Fix #warning message web address., Jiri Kosina, (Wed Jun 30, 2:48 am)
Re: [PATCH]kernel.h Fix #warning message web address., Justin P. Mattock, (Wed Jun 30, 6:28 am)
Re: [PATCH]kernel.h Fix #warning message web address., Justin P. Mattock, (Wed Jun 30, 2:20 pm)
Re: [PATCH]kernel.h Fix #warning message web address., Randy Dunlap, (Wed Jun 30, 2:22 pm)
Re: [PATCH]kernel.h Fix #warning message web address., Arnd Bergmann, (Wed Jun 30, 2:36 pm)
Re: [PATCH]kernel.h Fix #warning message web address., Justin P. Mattock, (Wed Jun 30, 2:37 pm)
Re: [PATCH]kernel.h Fix #warning message web address., Justin P. Mattock, (Wed Jun 30, 3:13 pm)