]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
HID: avoid sparse warning in HID_COMPAT_LOAD_DRIVER
authorHannes Eder <hannes@hanneseder.net>
Tue, 16 Dec 2008 13:20:23 +0000 (14:20 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 4 Jan 2009 00:00:53 +0000 (01:00 +0100)
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>
include/linux/hid.h

index 215035bbb288b70f4432c7e2ea93b9347c8086e1..81aa84d60c6b4087eb46ebe0a2f5ecfd1b274700 100644 (file)
@@ -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