libbpf: remove HASHMAP_INIT static initialization helper
PATCH v3 1/1 libbpf: remove HASHMAP_INIT static initialization helper
Remove the wrong HASHMAP_INIT. It's not used anywhere in libbpf.
Signed-off-by John Sanpe <[email protected]>
--- tools/lib/bpf/hashmap.h | 10 ---------- 1 file changed, 10 deletions(-)
tools/lib/bpf/hashmap.h +0 -10
@@ -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,
Signature · 1 line
2.40.1
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Quoted 6 lines · On Tue, 11 Jul 2023 15:07:12 +0800 you wrote:
Remove the wrong
HASHMAP_INIT. It's not used anywhere in libbpf.Signed-off-by John Sanpe <[email protected]>--- tools/lib/bpf/hashmap.h | 10 ---------- 1 file changed, 10 deletions(-)
Here is the summary with links:
- [v3] libbpf: remove HASHMAP_INIT static initialization helper
https://git.kernel.org/bpf/bpf-next/c/a3e7e6b17946
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html