diff options
author | 2023-07-11 15:07:12 +0800 | |
---|---|---|
committer | 2023-07-11 09:40:05 -0700 | |
commit | a3e7e6b17946f48badce98d7ac360678a0ea7393 (patch) | |
tree | bb5389440f56a9e2ae4c231546181b6141949085 /tools/lib | |
parent | libbpf: Fix realloc API handling in zero-sized edge cases (diff) | |
download | wireguard-linux-a3e7e6b17946f48badce98d7ac360678a0ea7393.tar.xz wireguard-linux-a3e7e6b17946f48badce98d7ac360678a0ea7393.zip |
libbpf: Remove HASHMAP_INIT static initialization helper
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
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/bpf/hashmap.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/lib/bpf/hashmap.h b/tools/lib/bpf/hashmap.h index 0a5bf1937a7c..c12f8320e668 100644 --- 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, |