[PATCH 4/4] toshiba.h: hide a function prototypes behind __KERNEL__ macro

Alexander Shishkin <[email protected]> Wed, 1 Dec 2010 17:10:45 +0200
Newsgroups gmane.linux.kernel,gmane.linux.hardware.toshiba
Message-ID <[email protected]>
Currently, tosh_smm() prototype is present in a header
file exported to userland. This patch fixes it.

Signed-off-by: Alexander Shishkin <[email protected]>
CC: Andrew Morton <[email protected]>
CC: Jonathan Buzzard <[email protected]>
CC: [email protected]
CC: [email protected]
---
 include/linux/toshiba.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/toshiba.h b/include/linux/toshiba.h
index 6a7c4ed..772dedb 100644
--- a/include/linux/toshiba.h
+++ b/include/linux/toshiba.h
@@ -33,6 +33,8 @@ typedef struct {
 	unsigned int edi __attribute__ ((packed));
 } SMMRegisters;
 
+#ifdef __KERNEL__
 int tosh_smm(SMMRegisters *regs);
+#endif /* __KERNEL__ */
 
 #endif
-- 
1.7.2.1.45.gb66c2