]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9482af7da35c330c937b0cdf62423dec7dede2a8
tree17c755c117384b3ed568c5f04ec603be9b206198
parent98b652337a29b5e15862d2d29a5b937cc112b4b1
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 66e239435d1fca9a92b1482916b936beb279eac3 ("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