Skip to content

Commit

Permalink
perf kmem: Fix unused argument build warning
Browse files Browse the repository at this point in the history
Fix:

 builtin-kmem.c: In function 'parse_caller_opt':
 builtin-kmem.c:690: error: unused parameter 'arg'
 builtin-kmem.c: In function 'parse_alloc_opt':
 builtin-kmem.c:697: error: unused parameter 'arg'

Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <4B20A195.8030106@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Dec 10, 2009
1 parent 716d69e commit 7931241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/perf/builtin-kmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,14 +687,14 @@ static int parse_sort_opt(const struct option *opt __used,
}

static int parse_caller_opt(const struct option *opt __used,
const char *arg, int unset __used)
const char *arg __used, int unset __used)
{
caller_flag = (alloc_flag + 1);
return 0;
}

static int parse_alloc_opt(const struct option *opt __used,
const char *arg, int unset __used)
const char *arg __used, int unset __used)
{
alloc_flag = (caller_flag + 1);
return 0;
Expand Down

0 comments on commit 7931241

Please sign in to comment.