lkml.org 
[lkml]   [2009]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/5] Make kmsg_redirect static
Date
Now we have vt_get_kmsg_redirect()/vt_set_kmsg_redirect(), so we can make the
variable local to the compilcation unit.


Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
drivers/char/vt.c | 2 +-
include/linux/tty.h | 4 ----
2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 01c4a1c..ad1e7af 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -188,7 +188,7 @@ int fg_console;
int last_console;
int want_console = -1;
#ifdef CONFIG_VT_CONSOLE
-int kmsg_redirect;
+static int kmsg_redirect;
#endif

/*
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 91bb1df..fddafcb 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -340,10 +340,6 @@ extern void tty_write_flush(struct tty_struct *);

extern struct ktermios tty_std_termios;

-#ifdef CONFIG_VT_CONSOLE
-extern int kmsg_redirect;
-#endif
-
extern void console_init(void);
extern int vcs_init(void);

--
1.6.3.3


\
 
 \ /
  Last update: 2009-10-10 23:07    [W:0.070 / U:33.696 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site