[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-v0b41ivu6z6dyugbq9ffa9ez@git.kernel.org>
Date: Thu, 20 Apr 2017 04:05:29 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: wangnan0@...wei.com, mingo@...nel.org, tglx@...utronix.de,
adrian.hunter@...el.com, dsahern@...il.com, hpa@...or.com,
jolsa@...nel.org, namhyung@...nel.org,
linux-kernel@...r.kernel.org, acme@...hat.com, jpoimboe@...hat.com
Subject: [tip:perf/core] tools include: Drop ARRAY_SIZE() definition from
linux/hashtable.h
Commit-ID: 68289cbd83eaa20faef7cc818121bc8e769065de
Gitweb: http://git.kernel.org/tip/68289cbd83eaa20faef7cc818121bc8e769065de
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Mon, 17 Apr 2017 12:01:36 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 19 Apr 2017 13:01:45 -0300
tools include: Drop ARRAY_SIZE() definition from linux/hashtable.h
As tools/include/linux/kernel.h has it now, with the goodies present in
the kernel.h counterpart, i.e. checking that the parameter is an array
at build time.
Cc: Adrian Hunter <adrian.hunter@...el.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Wang Nan <wangnan0@...wei.com>
Link: http://lkml.kernel.org/n/tip-v0b41ivu6z6dyugbq9ffa9ez@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/include/linux/hashtable.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/tools/include/linux/hashtable.h b/tools/include/linux/hashtable.h
index c65cc0a..251eabf 100644
--- a/tools/include/linux/hashtable.h
+++ b/tools/include/linux/hashtable.h
@@ -13,10 +13,6 @@
#include <linux/hash.h>
#include <linux/log2.h>
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-#endif
-
#define DEFINE_HASHTABLE(name, bits) \
struct hlist_head name[1 << (bits)] = \
{ [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT }
Powered by blists - more mailing lists