projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a0260d
)
libbpf: Remove HASHMAP_INIT static initialization helper
author
John Sanpe
<sanpeqf@gmail.com>
Tue, 11 Jul 2023 07:07:12 +0000
(15:07 +0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Tue, 11 Jul 2023 16:40:05 +0000
(09:40 -0700)
Remove the wrong HASHMAP_INIT. It's not used anywhere in libbpf.
Signed-off-by: John Sanpe <sanpeqf@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20230711070712.2064144-1-sanpeqf@gmail.com
tools/lib/bpf/hashmap.h
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/hashmap.h
b/tools/lib/bpf/hashmap.h
index
0a5bf19
..
c12f832
100644
(file)
--- a/
tools/lib/bpf/hashmap.h
+++ b/
tools/lib/bpf/hashmap.h
@@
-80,16
+80,6
@@
struct hashmap {
size_t sz;
};
-#define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \
- .hash_fn = (hash_fn), \
- .equal_fn = (equal_fn), \
- .ctx = (ctx), \
- .buckets = NULL, \
- .cap = 0, \
- .cap_bits = 0, \
- .sz = 0, \
-}
-
void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
hashmap_equal_fn equal_fn, void *ctx);
struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,