]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vt: Remove vt_get_kmsg_redirect() from uapi header
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:26:31 +0000 (12:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 04:18:30 +0000 (20:18 -0800)
vt_get_kmsg_redirect() only has meaning to the console driver as
an alias for calling vt_kmsg_redirect(). Move the macro definition
to the only source file which uses it; remove from uapi/linux/vt.h

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c
include/uapi/linux/vt.h

index b33b00b386de92c7101d1c50c5547aa42a35c76d..3dc5d56261a5564945012ea0184b90fd78097c9c 100644 (file)
@@ -2509,6 +2509,8 @@ int vt_kmsg_redirect(int new)
                return kmsg_con;
 }
 
+#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
+
 /*
  *     Console on virtual terminal
  *
index 4b59a26799a366170db79572308ab5fd124efe5b..978578bd189575b2e157893b674ac3cbf9649514 100644 (file)
@@ -84,7 +84,4 @@ struct vt_setactivate {
 
 #define VT_SETACTIVATE 0x560F  /* Activate and set the mode of a console */
 
-
-#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
-
 #endif /* _UAPI_LINUX_VT_H */