diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-17 11:01:36 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 12:01:45 -0400 |
commit | 68289cbd83eaa20faef7cc818121bc8e769065de (patch) | |
tree | f6b07a6447b8089818c1d676d11fa19a94d57563 | |
parent | 0061459744cb985ef31a484bcd9b2fc3cfd01c1b (diff) |
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>
-rw-r--r-- | tools/include/linux/hashtable.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/include/linux/hashtable.h b/tools/include/linux/hashtable.h index c65cc0aa2659..251eabf2a05e 100644 --- a/tools/include/linux/hashtable.h +++ b/tools/include/linux/hashtable.h | |||
@@ -13,10 +13,6 @@ | |||
13 | #include <linux/hash.h> | 13 | #include <linux/hash.h> |
14 | #include <linux/log2.h> | 14 | #include <linux/log2.h> |
15 | 15 | ||
16 | #ifndef ARRAY_SIZE | ||
17 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) | ||
18 | #endif | ||
19 | |||
20 | #define DEFINE_HASHTABLE(name, bits) \ | 16 | #define DEFINE_HASHTABLE(name, bits) \ |
21 | struct hlist_head name[1 << (bits)] = \ | 17 | struct hlist_head name[1 << (bits)] = \ |
22 | { [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT } | 18 | { [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT } |