Commit 049763db6cd002cb447a5684b5a543a69d647d42

Authored by Alexander Shishkin
Committed by Linus Torvalds
1 parent 71a9048448

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/linux/toshiba.h
... ... @@ -33,7 +33,9 @@
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