summaryrefslogtreecommitdiffstats
path: root/include/linux/toshiba.h
diff options
context:
space:
mode:
authorAlexander Shishkin2011-01-13 01:59:35 +0100
committerLinus Torvalds2011-01-13 17:03:08 +0100
commit049763db6cd002cb447a5684b5a543a69d647d42 (patch)
treefbcba511ce208864a2f2334818e21702ba5ada2a /include/linux/toshiba.h
parentinclude/linux/kernel.h: abs(): fix handling of 32-bit unsigneds on 64-bit (diff)
downloadkernel-qcow2-linux-049763db6cd002cb447a5684b5a543a69d647d42.tar.gz
kernel-qcow2-linux-049763db6cd002cb447a5684b5a543a69d647d42.tar.xz
kernel-qcow2-linux-049763db6cd002cb447a5684b5a543a69d647d42.zip
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>
Diffstat (limited to 'include/linux/toshiba.h')
-rw-r--r--include/linux/toshiba.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/toshiba.h b/include/linux/toshiba.h
index 6a7c4edf0e13..772dedbc3a22 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