summaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-16 14:20:23 +0100
committerJiri Kosina <jkosina@suse.cz>2009-01-04 01:00:53 +0100
commit725cf0f47dbb02e0482f081828cff73f55479b79 (patch)
tree077843d1f7c44f61cbacf5c2813280ef48e6dd1d /include/linux/hid.h
parent079034073faf974973baa0256b029451f6e768ad (diff)
downloadop-kernel-dev-725cf0f47dbb02e0482f081828cff73f55479b79.zip
op-kernel-dev-725cf0f47dbb02e0482f081828cff73f55479b79.tar.gz
HID: avoid sparse warning in HID_COMPAT_LOAD_DRIVER
Impact: include a prototype for the exported function in the macro Fix about 20 of this warnings: drivers/hid/hid-a4tech.c:162:1: warning: symbol 'hid_compat_a4tech' was not declared. Should it be static? Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-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 215035b..81aa84d 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -793,6 +793,8 @@ dbg_hid(const char *fmt, ...)
#ifdef CONFIG_HID_COMPAT
#define HID_COMPAT_LOAD_DRIVER(name) \
+/* prototype to avoid sparse warning */ \
+extern void hid_compat_##name(void); \
void hid_compat_##name(void) { } \
EXPORT_SYMBOL(hid_compat_##name)
#else
OpenPOWER on IntegriCloud