From: Alexander Shishkin Date: Thu, 13 Jan 2011 00:59:35 +0000 (-0800) Subject: toshiba.h: hide a function prototypes behind __KERNEL__ macro X-Git-Tag: v2.6.38-rc1~377 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=049763db6cd002cb447a5684b5a543a69d647d42;p=karo-tx-linux.git 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 Cc: Jonathan Buzzard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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