diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tty.h | 2 | ||||
-rw-r--r-- | include/linux/vt.h | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 405a9035fe40..ef3a2947b102 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -350,8 +350,6 @@ extern void tty_write_flush(struct tty_struct *); | |||
350 | 350 | ||
351 | extern struct ktermios tty_std_termios; | 351 | extern struct ktermios tty_std_termios; |
352 | 352 | ||
353 | extern int kmsg_redirect; | ||
354 | |||
355 | extern void console_init(void); | 353 | extern void console_init(void); |
356 | extern int vcs_init(void); | 354 | extern int vcs_init(void); |
357 | 355 | ||
diff --git a/include/linux/vt.h b/include/linux/vt.h index 7ffa11f06232..3fb9944e50a6 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h | |||
@@ -84,4 +84,19 @@ struct vt_setactivate { | |||
84 | 84 | ||
85 | #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ | 85 | #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ |
86 | 86 | ||
87 | #ifdef CONFIG_VT_CONSOLE | ||
88 | |||
89 | extern int vt_kmsg_redirect(int new); | ||
90 | |||
91 | #else | ||
92 | |||
93 | static inline int vt_kmsg_redirect(int new) | ||
94 | { | ||
95 | return 0; | ||
96 | } | ||
97 | |||
98 | #endif | ||
99 | |||
100 | #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) | ||
101 | |||
87 | #endif /* _LINUX_VT_H */ | 102 | #endif /* _LINUX_VT_H */ |