diff options
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 8 | ||||
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index f4190b5764de..2c54cdd8ae1b 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -1824,7 +1824,7 @@ process_op(struct event_format *event, struct print_arg *arg, char **tok) | |||
1824 | } | 1824 | } |
1825 | 1825 | ||
1826 | static enum event_type | 1826 | static enum event_type |
1827 | process_entry(struct event_format *event __unused, struct print_arg *arg, | 1827 | process_entry(struct event_format *event __maybe_unused, struct print_arg *arg, |
1828 | char **tok) | 1828 | char **tok) |
1829 | { | 1829 | { |
1830 | enum event_type type; | 1830 | enum event_type type; |
@@ -2458,7 +2458,8 @@ process_paren(struct event_format *event, struct print_arg *arg, char **tok) | |||
2458 | 2458 | ||
2459 | 2459 | ||
2460 | static enum event_type | 2460 | static enum event_type |
2461 | process_str(struct event_format *event __unused, struct print_arg *arg, char **tok) | 2461 | process_str(struct event_format *event __maybe_unused, struct print_arg *arg, |
2462 | char **tok) | ||
2462 | { | 2463 | { |
2463 | enum event_type type; | 2464 | enum event_type type; |
2464 | char *token; | 2465 | char *token; |
@@ -3653,7 +3654,8 @@ static void free_args(struct print_arg *args) | |||
3653 | } | 3654 | } |
3654 | 3655 | ||
3655 | static char * | 3656 | static char * |
3656 | get_bprint_format(void *data, int size __unused, struct event_format *event) | 3657 | get_bprint_format(void *data, int size __maybe_unused, |
3658 | struct event_format *event) | ||
3657 | { | 3659 | { |
3658 | struct pevent *pevent = event->pevent; | 3660 | struct pevent *pevent = event->pevent; |
3659 | unsigned long long addr; | 3661 | unsigned long long addr; |
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 3318963f1c98..a4bbe2437925 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <stdarg.h> | 24 | #include <stdarg.h> |
25 | #include <regex.h> | 25 | #include <regex.h> |
26 | 26 | ||
27 | #ifndef __unused | 27 | #ifndef __maybe_unused |
28 | #define __unused __attribute__ ((unused)) | 28 | #define __maybe_unused __attribute__((unused)) |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* ----------------------- trace_seq ----------------------- */ | 31 | /* ----------------------- trace_seq ----------------------- */ |