summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-12-10 08:43:34 +0100
committerIngo Molnar <mingo@elte.hu>2009-12-10 08:44:39 +0100
commit7931241694b25589658b1ceb02218d2750540ae0 (patch)
tree79cf096d9045b4b242a21f36793ac2bc503f9b0c /tools
parent716d69e4fda0563ef67d62ee44baa17b377b9b23 (diff)
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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-kmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
index 1b04787ed90..5f209514f65 100644
--- a/tools/perf/builtin-kmem.c
+++ b/tools/perf/builtin-kmem.c
@@ -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;