public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]kernel.h Fix #warning message web address.
@ 2010-06-29 19:37 Justin P. Mattock
  2010-06-30  9:48 ` Jiri Kosina
  0 siblings, 1 reply; 8+ messages in thread
From: Justin P. Mattock @ 2010-06-29 19:37 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel, Justin P. Mattock

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-30 22:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 19:37 [PATCH]kernel.h Fix #warning message web address Justin P. Mattock
2010-06-30  9:48 ` Jiri Kosina
2010-06-30 13:28   ` Justin P. Mattock
2010-06-30 21:20   ` Justin P. Mattock
2010-06-30 21:22     ` Randy Dunlap
2010-06-30 21:37       ` Justin P. Mattock
2010-06-30 21:36     ` Arnd Bergmann
2010-06-30 22:13       ` Justin P. Mattock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox