提交 ca383a4d 编写于 作者: A Arnaldo Carvalho de Melo

tools lib traceevent: Add __maybe_unused to unused parameters

Fixing the build on 32-bit Fedora 14:

  tools/lib/traceevent/event-parse.c: In function ‘print_event_fields’:
  tools/lib/traceevent/event-parse.c:3934:69: error: unused parameter ‘size’
  tools/lib/traceevent/event-parse.c: In function ‘pevent_strerror’:
  tools/lib/traceevent/event-parse.c:5074:36: error: unused parameter ‘pevent’

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/n/tip-soe4gqcz8fd4ecik6exvyqox@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 41127965
...@@ -3931,7 +3931,8 @@ static int is_printable_array(char *p, unsigned int len) ...@@ -3931,7 +3931,8 @@ static int is_printable_array(char *p, unsigned int len)
return 1; return 1;
} }
static void print_event_fields(struct trace_seq *s, void *data, int size, static void print_event_fields(struct trace_seq *s, void *data,
int size __maybe_unused,
struct event_format *event) struct event_format *event)
{ {
struct format_field *field; struct format_field *field;
...@@ -5070,8 +5071,8 @@ static const char * const pevent_error_str[] = { ...@@ -5070,8 +5071,8 @@ static const char * const pevent_error_str[] = {
}; };
#undef _PE #undef _PE
int pevent_strerror(struct pevent *pevent, enum pevent_errno errnum, int pevent_strerror(struct pevent *pevent __maybe_unused,
char *buf, size_t buflen) enum pevent_errno errnum, char *buf, size_t buflen)
{ {
int idx; int idx;
const char *msg; const char *msg;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册