Skip to content

Commit 68289cb

Browse files
committed
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@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-v0b41ivu6z6dyugbq9ffa9ez@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0061459 commit 68289cb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎tools/include/linux/hashtable.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
#include <linux/hash.h>
1414
#include <linux/log2.h>
1515

16-
#ifndef ARRAY_SIZE
17-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
18-
#endif
19-
2016
#define DEFINE_HASHTABLE(name, bits) \
2117
struct hlist_head name[1 << (bits)] = \
2218
{ [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT }

0 commit comments

Comments
 (0)