Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=120c0b6d57257b2a3508d96bdaf54781935439f6
Commit:     120c0b6d57257b2a3508d96bdaf54781935439f6
Parent:     908633f3ec8b3e10ef23de28ae6a5b1770118cfd
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 16 01:29:04 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 09:43:17 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Antonino Daplas <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 include/linux/selection.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/selection.h b/include/linux/selection.h
index f945786..8cdaa11 100644
--- a/include/linux/selection.h
+++ b/include/linux/selection.h
@@ -13,6 +13,7 @@
 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to