[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230711070712.2064144-1-sanpeqf@gmail.com>
Date: Tue, 11 Jul 2023 15:07:12 +0800
From: John Sanpe <sanpeqf@...il.com>
To: daniel@...earbox.net, ast@...nel.org, andrii@...nel.org
Cc: martin.lau@...ux.dev, song@...nel.org, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org, sdf@...gle.com,
haoluo@...gle.com, jolsa@...nel.org, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org, John Sanpe <sanpeqf@...il.com>
Subject: [PATCH v3] 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@...il.com>
---
tools/lib/bpf/hashmap.h | 10 ----------
1 file changed, 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,
--
2.40.1
Powered by blists - more mailing lists