Skip to content

Commit

Permalink
vt: Remove vt_get_kmsg_redirect() from uapi header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Nov 6, 2014
1 parent 5ac9c05 commit 6895207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/vt/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 0 additions & 3 deletions include/uapi/linux/vt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 6895207

Please sign in to comment.