Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

toshiba.h: hide a function prototypes behind __KERNEL__ macro

Currently, tosh_smm() prototype is present in a header file exported to
userland. This patch fixes it.

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Cc: Jonathan Buzzard <jonathan@buzzard.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexander Shishkin and committed by
Linus Torvalds
049763db 71a90484

+2
+2
include/linux/toshiba.h
··· 33 33 unsigned int edi __attribute__ ((packed)); 34 34 } SMMRegisters; 35 35 36 + #ifdef __KERNEL__ 36 37 int tosh_smm(SMMRegisters *regs); 38 + #endif /* __KERNEL__ */ 37 39 38 40 #endif