]> asedeno.scripts.mit.edu Git - linux.git/commit
libbpf: add common min/max macro to libbpf_internal.h
authorAndrii Nakryiko <andriin@fb.com>
Mon, 17 Jun 2019 19:26:50 +0000 (12:26 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 17 Jun 2019 22:08:54 +0000 (00:08 +0200)
commitd7fe74f9404a9736e9d4f754c30e43640a822c17
tree6d2addde09dcb0095db479aa801575f173e886b8
parent7f94208c8f9a0a6d2ff0e0c0858c00ad8e5c8617
libbpf: add common min/max macro to libbpf_internal.h

Multiple files in libbpf redefine their own definitions for min/max.
Let's define them in libbpf_internal.h and use those everywhere.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf_prog_linfo.c
tools/lib/bpf/btf.c
tools/lib/bpf/btf_dump.c
tools/lib/bpf/libbpf_internal.h