diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-11-11 11:20:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-22 10:48:51 -0500 |
commit | 52c40fca1a80abaffd9f7315de568d89a2064734 (patch) | |
tree | 82fe3a0db02abd0f4eb4ab311362dfacfd7df748 /drivers/tty/vt/vt.c | |
parent | e4c787dac21e50ac9ef53fac91b9182d4fede465 (diff) |
vt: Fix build breakage when !CONFIG_VT_CONSOLE
Commit 68952076e9226cc23ebce66d3fc2fdb8b6c04c30 ("vt: Remove
vt_get_kmsg_redirect() from uapi header") fails to compile if
!CONFIG_VT_CONSOLE.
Move macro definition for vt_get_kmsg_redirect() up with file-scope
function declarations.
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/vt.c')
-rw-r--r-- | drivers/tty/vt/vt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 43c2c2495907..ed0136519422 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
@@ -156,6 +156,8 @@ static void console_callback(struct work_struct *ignored); | |||
156 | static void blank_screen_t(unsigned long dummy); | 156 | static void blank_screen_t(unsigned long dummy); |
157 | static void set_palette(struct vc_data *vc); | 157 | static void set_palette(struct vc_data *vc); |
158 | 158 | ||
159 | #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) | ||
160 | |||
159 | static int printable; /* Is console ready for printing? */ | 161 | static int printable; /* Is console ready for printing? */ |
160 | int default_utf8 = true; | 162 | int default_utf8 = true; |
161 | module_param(default_utf8, int, S_IRUGO | S_IWUSR); | 163 | module_param(default_utf8, int, S_IRUGO | S_IWUSR); |
@@ -2513,8 +2515,6 @@ int vt_kmsg_redirect(int new) | |||
2513 | return kmsg_con; | 2515 | return kmsg_con; |
2514 | } | 2516 | } |
2515 | 2517 | ||
2516 | #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) | ||
2517 | |||
2518 | /* | 2518 | /* |
2519 | * Console on virtual terminal | 2519 | * Console on virtual terminal |
2520 | * | 2520 | * |