public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] libbpf: remove HASHMAP_INIT static initialization helper
@ 2023-07-11  7:07 John Sanpe
  2023-07-11 16:50 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: John Sanpe @ 2023-07-11  7:07 UTC (permalink / raw)
  To: daniel, ast, andrii
  Cc: martin.lau, song, yhs, john.fastabend, kpsingh, sdf, haoluo,
	jolsa, bpf, linux-kernel, John Sanpe

Remove the wrong HASHMAP_INIT. It's not used anywhere in libbpf.

Signed-off-by: John Sanpe <sanpeqf@gmail.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] libbpf: remove HASHMAP_INIT static initialization helper
  2023-07-11  7:07 [PATCH v3] libbpf: remove HASHMAP_INIT static initialization helper John Sanpe
@ 2023-07-11 16:50 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-07-11 16:50 UTC (permalink / raw)
  To: John Sanpe
  Cc: daniel, ast, andrii, martin.lau, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa, bpf, linux-kernel

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

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 <sanpeqf@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-11 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-11  7:07 [PATCH v3] libbpf: remove HASHMAP_INIT static initialization helper John Sanpe
2023-07-11 16:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox