Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Update copy of libbpf's hashmap.c

To pick the changes in:

a3e7e6b17946f48b ("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>

-10
-10
tools/perf/util/hashmap.h
··· 80 80 size_t sz; 81 81 }; 82 82 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 - 93 83 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 94 84 hashmap_equal_fn equal_fn, void *ctx); 95 85 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,