diff options
| author | 2019-06-17 12:26:50 -0700 | |
|---|---|---|
| committer | 2019-06-18 00:08:54 +0200 | |
| commit | d7fe74f9404a9736e9d4f754c30e43640a822c17 (patch) | |
| tree | 6d2addde09dcb0095db479aa801575f173e886b8 /tools/lib/bpf/btf_dump.c | |
| parent | bpf: Fix build error without CONFIG_INET (diff) | |
| download | linux-dev-d7fe74f9404a9736e9d4f754c30e43640a822c17.tar.xz linux-dev-d7fe74f9404a9736e9d4f754c30e43640a822c17.zip | |
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>
Diffstat (limited to 'tools/lib/bpf/btf_dump.c')
| -rw-r--r-- | tools/lib/bpf/btf_dump.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/lib/bpf/btf_dump.c b/tools/lib/bpf/btf_dump.c index 4b22db77e2cc..7065bb5b2752 100644 --- a/tools/lib/bpf/btf_dump.c +++ b/tools/lib/bpf/btf_dump.c @@ -18,9 +18,6 @@ #include "libbpf.h" #include "libbpf_internal.h" -#define min(x, y) ((x) < (y) ? (x) : (y)) -#define max(x, y) ((x) < (y) ? (y) : (x)) - static const char PREFIXES[] = "\t\t\t\t\t\t\t\t\t\t\t\t\t"; static const size_t PREFIX_CNT = sizeof(PREFIXES) - 1; |
