projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53985a7
)
perf kmem: use ARRAY_SIZE instead of reinventing it
author
Sasha Levin
<sasha.levin@oracle.com>
Thu, 20 Dec 2012 19:11:16 +0000
(14:11 -0500)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Thu, 24 Jan 2013 19:40:15 +0000
(16:40 -0300)
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link:
http://lkml.kernel.org/r/1356030701-16284-8-git-send-email-sasha.levin@oracle.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kmem.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/builtin-kmem.c
b/tools/perf/builtin-kmem.c
index 9fddca749ca2fa541b7f3c247f5567476c296f40..c746108c5d48083f870dd58ddd278364e69e3c6a 100644
(file)
--- a/
tools/perf/builtin-kmem.c
+++ b/
tools/perf/builtin-kmem.c
@@
-609,8
+609,7
@@
static struct sort_dimension *avail_sorts[] = {
&pingpong_sort_dimension,
};
-#define NUM_AVAIL_SORTS \
- (int)(sizeof(avail_sorts) / sizeof(struct sort_dimension *))
+#define NUM_AVAIL_SORTS ((int)ARRAY_SIZE(avail_sorts))
static int sort_dimension__add(const char *tok, struct list_head *list)
{