login
Header Space

 
 

[PATCH] Warn userspace about including an empty linux/tty.h.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: Andrew Morton <akpm@...>, <jirislaby@...>
Date: Thursday, July 19, 2007 - 7:23 am

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

  what subsystem would something like this belong to?


diff --git a/include/linux/tty.h b/include/linux/tty.h
index 691a174..fd67da8 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -5,6 +5,10 @@
  * 'tty.h' defines some structures used by tty_io.c and some defines.
  */

+#ifndef __KERNEL__
+#warning "Please don't include this file from userspace, it's empty."
+#endif
+
 #ifdef __KERNEL__
 #include <linux/fs.h>
 #include <linux/major.h>
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Warn userspace about including an empty linux/tty.h., Robert P. J. Day, (Thu Jul 19, 7:23 am)
speck-geostationary