vt: Fix build breakage when !CONFIG_VT_CONSOLE
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 11 Nov 2014 16:20:56 +0000 (11:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Nov 2014 15:48:51 +0000 (07:48 -0800)
commit52c40fca1a80abaffd9f7315de568d89a2064734
tree82fe3a0db02abd0f4eb4ab311362dfacfd7df748
parente4c787dac21e50ac9ef53fac91b9182d4fede465
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>
drivers/tty/vt/vt.c