diff options
author | Jiri Kosina <jkosina@suse.cz> | 2009-06-26 04:48:34 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-06-26 04:48:34 -0400 |
commit | 38b7f49a0654cb52cac61c6455807248eee3059d (patch) | |
tree | 1b0d570e7abbf6356ea540d323323b952ba981f8 | |
parent | cd667ce24796700e1a0e6e7528efc61c96ff832e (diff) |
HID: fix debugfs build with !CONFIG_DEBUG_FS
Fix the debug function prototypes to be correct even in the
!CONFIG_DEBUG_FS case.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | include/linux/hid-debug.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/hid-debug.h b/include/linux/hid-debug.h index ec08ac1ad687..53744fa1c8b7 100644 --- a/include/linux/hid-debug.h +++ b/include/linux/hid-debug.h | |||
@@ -22,6 +22,8 @@ | |||
22 | * | 22 | * |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #define HID_DEBUG_BUFSIZE 512 | ||
26 | |||
25 | #ifdef CONFIG_DEBUG_FS | 27 | #ifdef CONFIG_DEBUG_FS |
26 | 28 | ||
27 | void hid_dump_input(struct hid_device *, struct hid_usage *, __s32); | 29 | void hid_dump_input(struct hid_device *, struct hid_usage *, __s32); |
@@ -34,7 +36,6 @@ void hid_debug_init(void); | |||
34 | void hid_debug_exit(void); | 36 | void hid_debug_exit(void); |
35 | void hid_debug_event(struct hid_device *, char *); | 37 | void hid_debug_event(struct hid_device *, char *); |
36 | 38 | ||
37 | #define HID_DEBUG_BUFSIZE 512 | ||
38 | 39 | ||
39 | struct hid_debug_list { | 40 | struct hid_debug_list { |
40 | char *hid_debug_buf; | 41 | char *hid_debug_buf; |
@@ -48,11 +49,10 @@ struct hid_debug_list { | |||
48 | 49 | ||
49 | #else | 50 | #else |
50 | 51 | ||
51 | #define hid_dump_input(a,b) do { } while (0) | 52 | #define hid_dump_input(a,b,c) do { } while (0) |
52 | #define hid_dump_device(c) do { } while (0) | 53 | #define hid_dump_device(a,b) do { } while (0) |
53 | #define hid_dump_field(a,b) do { } while (0) | 54 | #define hid_dump_field(a,b,c) do { } while (0) |
54 | #define hid_resolv_usage(a) do { } while (0) | 55 | #define hid_resolv_usage(a,b) do { } while (0) |
55 | #define hid_resolv_event(a,b) do { } while (0) | ||
56 | #define hid_debug_register(a, b) do { } while (0) | 56 | #define hid_debug_register(a, b) do { } while (0) |
57 | #define hid_debug_unregister(a) do { } while (0) | 57 | #define hid_debug_unregister(a) do { } while (0) |
58 | #define hid_debug_init() do { } while (0) | 58 | #define hid_debug_init() do { } while (0) |