diff options
| author | Andrii Nakryiko <[email protected]> | 2022-04-07 13:38:42 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-04-07 23:34:15 +0200 |
| commit | ded6dffaed5edc68f1e64b523353da14db673460 (patch) | |
| tree | 9ee24f1f0152165d1c2b63dbb8a150a2cfe181a3 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | e58c5c9717460851047f63b8615ea0760a6f3a2e (diff) | |
libbpf: Fix use #ifdef instead of #if to avoid compiler warning
As reported by Naresh:
perf build errors on i386 [1] on Linux next-20220407 [2]
usdt.c:1181:5: error: "__x86_64__" is not defined, evaluates to 0
[-Werror=undef]
1181 | #if __x86_64__
| ^~~~~~~~~~
usdt.c:1196:5: error: "__x86_64__" is not defined, evaluates to 0
[-Werror=undef]
1196 | #if __x86_64__
| ^~~~~~~~~~
cc1: all warnings being treated as errors
Use #ifdef instead of #if to avoid this.
Fixes: 4c59e584d158 ("libbpf: Add x86-specific USDT arg spec parsing logic")
Reported-by: Naresh Kamboju <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions