Skip to content

Commit a6e414a

Browse files
committed
perf tools: Update copy of libbpf's hashmap.c
To pick the changes in: a3e7e6b ("libbpf: Remove HASHMAP_INIT static initialization helper") That don't entail any changes in tools/perf. This addresses this perf build warning: Warning: Kernel ABI header differences: diff -u tools/perf/util/hashmap.h tools/lib/bpf/hashmap.h Not a kernel ABI, its just that this uses the mechanism in place for checking kernel ABI files drift. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0bb80ec commit a6e414a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tools/perf/util/hashmap.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,6 @@ struct hashmap {
8080
size_t sz;
8181
};
8282

83-
#define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \
84-
.hash_fn = (hash_fn), \
85-
.equal_fn = (equal_fn), \
86-
.ctx = (ctx), \
87-
.buckets = NULL, \
88-
.cap = 0, \
89-
.cap_bits = 0, \
90-
.sz = 0, \
91-
}
92-
9383
void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
9484
hashmap_equal_fn equal_fn, void *ctx);
9585
struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,

0 commit comments

Comments
 (0)