Commit 04dccf6f authored by Adam Kropelin's avatar Adam Kropelin Committed by Vojtech Pavlik

input: hid-debug.h includes resolv_event, which is not used if DEBUG is only

       enabled in hid-core, but _is_ used when DEBUG is also enabled in hid-input.
       Mark the function with __attribute__((unused)) to silence the warning
       when only hid-core is being DEBUGged.
Signed-off-by: default avatarAdam Kropelin <akropel1@rochester.rr.com>
Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
parent c10b5f89
......@@ -713,7 +713,7 @@ static char **names[EV_MAX + 1] = {
[EV_SND] = sounds, [EV_REP] = repeats,
};
static void resolv_event(__u8 type, __u16 code) {
static void __attribute__((unused)) resolv_event(__u8 type, __u16 code) {
printk("%s.%s", events[type] ? events[type] : "?",
names[type] ? (names[type][code] ? names[type][code] : "?") : "?");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment