aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/selection.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-16 04:29:04 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:17 -0400
commit120c0b6d57257b2a3508d96bdaf54781935439f6 (patch)
treeee2361306d4e0e98e1eae2d114876e2228bfcc36 /include/linux/selection.h
parent908633f3ec8b3e10ef23de28ae6a5b1770118cfd (diff)
vt: Fix warnings in selection.h
<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. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/selection.h')
-rw-r--r--include/linux/selection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/selection.h b/include/linux/selection.h
index f9457861937c..8cdaa1151d2e 100644
--- a/include/linux/selection.h
+++ b/include/linux/selection.h
@@ -13,6 +13,7 @@
13struct tty_struct; 13struct tty_struct;
14 14
15extern struct vc_data *sel_cons; 15extern struct vc_data *sel_cons;
16struct tty_struct;
16 17
17extern void clear_selection(void); 18extern void clear_selection(void);
18extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty); 19extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);