Commit 79312416 authored by Ingo Molnar's avatar Ingo Molnar

perf kmem: Fix unused argument build warning

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: default avatarIngo Molnar <mingo@elte.hu>
parent 716d69e4
...@@ -687,14 +687,14 @@ static int parse_sort_opt(const struct option *opt __used, ...@@ -687,14 +687,14 @@ static int parse_sort_opt(const struct option *opt __used,
} }
static int parse_caller_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); caller_flag = (alloc_flag + 1);
return 0; return 0;
} }
static int parse_alloc_opt(const struct option *opt __used, 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); alloc_flag = (caller_flag + 1);
return 0; return 0;
......
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