Commit 52c40fca authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman

vt: Fix build breakage when !CONFIG_VT_CONSOLE

Commit 68952076 ("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: default avatarJim Davis <jim.epost@gmail.com>
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4c787da
...@@ -156,6 +156,8 @@ static void console_callback(struct work_struct *ignored); ...@@ -156,6 +156,8 @@ static void console_callback(struct work_struct *ignored);
static void blank_screen_t(unsigned long dummy); static void blank_screen_t(unsigned long dummy);
static void set_palette(struct vc_data *vc); static void set_palette(struct vc_data *vc);
#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
static int printable; /* Is console ready for printing? */ static int printable; /* Is console ready for printing? */
int default_utf8 = true; int default_utf8 = true;
module_param(default_utf8, int, S_IRUGO | S_IWUSR); module_param(default_utf8, int, S_IRUGO | S_IWUSR);
...@@ -2513,8 +2515,6 @@ int vt_kmsg_redirect(int new) ...@@ -2513,8 +2515,6 @@ int vt_kmsg_redirect(int new)
return kmsg_con; return kmsg_con;
} }
#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
/* /*
* Console on virtual terminal * Console on virtual terminal
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment