aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-12-10 02:43:34 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-10 02:44:39 -0500
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 1b04787ed90a..5f209514f657 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,
687} 687}
688 688
689static int parse_caller_opt(const struct option *opt __used, 689static int parse_caller_opt(const struct option *opt __used,
690 const char *arg, int unset __used) 690 const char *arg __used, int unset __used)
691{ 691{
692 caller_flag = (alloc_flag + 1); 692 caller_flag = (alloc_flag + 1);
693 return 0; 693 return 0;
694} 694}
695 695
696static int parse_alloc_opt(const struct option *opt __used, 696static int parse_alloc_opt(const struct option *opt __used,
697 const char *arg, int unset __used) 697 const char *arg __used, int unset __used)
698{ 698{
699 alloc_flag = (caller_flag + 1); 699 alloc_flag = (caller_flag + 1);
700 return 0; 700 return 0;