vt: don't export vt_kmsg_redirect() to userspace
authorBernhard Walle <bernhard@bwalle.de>
Thu, 17 Dec 2009 23:27:11 +0000 (15:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Dec 2009 23:45:30 +0000 (15:45 -0800)
commit5d0bb2c4238e333ae18c5cd23f75e02a3dac3519
tree17c755c117384b3ed568c5f04ec603be9b206198
parent0f05058531330854ff383237e1547044c67e5740
vt: don't export vt_kmsg_redirect() to userspace

Fix following warning in linux-next by guarding the function definition
(both the "extern" and the inline) with #ifdef __KERNEL__.

usr/include/linux/vt.h:89: userspace cannot call function or variable defined in
the kernel

Introduced by commit 5ada918b82399eef3afd6a71e3637697d6bd719f ("vt:
introduce and use vt_kmsg_redirect() function").

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vt.h