History

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.

Arnaldo Carvalho de Melo committed 9 years ago

Commit 68289cb1 parent 00614591 file · +0 −4Browse files

Showing the changes to tools/include/linux (1 of 1 file). Show all

Unified · Split

tools/include/linux/hashtable.h+0−4
@@ -13,10 +13,6 @@ · 12 unmodified lines
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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t