Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 725cf0f4 authored by Hannes Eder's avatar Hannes Eder Committed by Jiri Kosina
Browse files

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: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 07903407
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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