提交 49e4ba54 编写于 作者: S Sasha Levin 提交者: Arnaldo Carvalho de Melo

perf kmem: use ARRAY_SIZE instead of reinventing it

Signed-off-by: NSasha 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.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 53985a7b
...@@ -609,8 +609,7 @@ static struct sort_dimension *avail_sorts[] = { ...@@ -609,8 +609,7 @@ static struct sort_dimension *avail_sorts[] = {
&pingpong_sort_dimension, &pingpong_sort_dimension,
}; };
#define NUM_AVAIL_SORTS \ #define NUM_AVAIL_SORTS ((int)ARRAY_SIZE(avail_sorts))
(int)(sizeof(avail_sorts) / sizeof(struct sort_dimension *))
static int sort_dimension__add(const char *tok, struct list_head *list) static int sort_dimension__add(const char *tok, struct list_head *list)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册