summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-01-30 16:45:34 +0100
committerJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-01-30 19:20:37 +0100
commitb08ead0527bcfdcab39a347b531701289485b484 (patch)
tree055e7e2f0de2f6e76797b39172e4761371a9672b
parentheaders_check fix: linux/gfs2_ondisk.h (diff)
downloadlinux-b08ead0527bcfdcab39a347b531701289485b484.tar.xz
linux-b08ead0527bcfdcab39a347b531701289485b484.zip
headers_check fix: linux/hid.h
fix the following 'make headers_check' warnings: usr/include/linux/hid.h:69: extern's make no sense in userspace usr/include/linux/hid.h:76: extern's make no sense in userspace Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
-rw-r--r--include/linux/hid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 81aa84d60c6b..fa8ee9cef7be 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -791,6 +791,7 @@ dbg_hid(const char *fmt, ...)
__FILE__ , ## arg)
#endif /* HID_FF */
+#ifdef __KERNEL__
#ifdef CONFIG_HID_COMPAT
#define HID_COMPAT_LOAD_DRIVER(name) \
/* prototype to avoid sparse warning */ \
@@ -804,6 +805,7 @@ EXPORT_SYMBOL(hid_compat_##name)
extern void hid_compat_##name(void); \
hid_compat_##name(); \
} while (0)
+#endif /* __KERNEL__ */
#endif