mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Include <asm/termbits.h> from <linux/tty_driver.h>.
@ 2007-06-08 13:29 Robert P. J. Day
  2007-06-08 15:30 ` Alan Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Robert P. J. Day @ 2007-06-08 13:29 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton


The header file <linux/tty_driver.h> should include <asm/termbits.h>
to pick up the definition of "struct ktermios"; otherwise, you run the
risk of seeing:

include/linux/tty_driver.h:142: warning: 'struct ktermios' \
	declared inside parameter list
include/linux/tty_driver.h:142: warning: its scope is only \
	this definition or declaration, which is probably not what you want

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

---

  i'm *guessing* this is the solution to the above issue.


diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
index 85c95cd..b687174 100644
--- a/include/linux/tty_driver.h
+++ b/include/linux/tty_driver.h
@@ -123,6 +123,7 @@
 #include <linux/fs.h>
 #include <linux/list.h>
 #include <linux/cdev.h>
+#include <asm/termbits.h>

 struct tty_struct;


-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

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

end of thread, other threads:[~2007-06-08 16:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08 13:29 [PATCH] Include <asm/termbits.h> from <linux/tty_driver.h> Robert P. J. Day
2007-06-08 15:30 ` Alan Cox
2007-06-08 15:27   ` Jan Engelhardt
2007-06-08 15:34     ` Robert P. J. Day
2007-06-08 15:45       ` Alan Cox
2007-06-08 15:42         ` Robert P. J. Day
2007-06-08 16:53           ` Jan Engelhardt
2007-06-08 15:29   ` Robert P. J. Day
2007-06-08 15:48     ` Alan Cox
2007-06-08 15:46       ` Robert P. J. Day
2007-06-08 15:57         ` Alan Cox
2007-06-08 16:15           ` Robert P. J. Day
2007-06-08 16:24             ` Alan Cox
2007-06-08 16:27               ` Robert P. J. Day
2007-06-08 16:41                 ` Alan Cox

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

all inboxes | Powered by JetHome®