Skip to contentSkip to conversation

vt: Fix warnings in selection.h

PATCH In review Antonino A. Daplas 1 participant 1 message Aug 26, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/20 vt: Fix warnings in selection.h

From: Ralf Baechle <[email protected]>

<linux/selection.h> assumes that struct tty_struct has previously been included. If not, this pile of warnings will result:

CC [M] drivers/video/console/newport_con.o
In file included from drivers/video/console/newport_con.c:18:
include/linux/selection.h:16: warning: 'struct tty_struct' declared inside param eter list
include/linux/selection.h:16: warning: its scope is only this definition or decl aration, which is probably not what you want include/linux/selection.h:17: warning: 'struct tty_struct' declared inside param eter list
include/linux/selection.h:20: warning: 'struct tty_struct' declared inside param eter list

Fixed by adding a forward declaration of struct tty_struct.

---

 include/linux/selection.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/selection.h +1 -0
index f945786..8cdaa11 100644
@@ -13,6 +13,7 @@ #include <linux/vt_buffer.h>
 struct tty_struct;
 
 extern struct vc_data *sel_cons;
+struct tty_struct;
 
 extern void clear_selection(void);
 extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/