diff options
author | Arnd Bergmann <[email protected]> | 2023-06-02 15:50:18 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-06-12 19:00:08 +0200 |
commit | ba49f976885869835a1783863376221dc24f1817 (patch) | |
tree | 857376557b2d1d90930db13e64f594351836456a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b23ed4d74c4d583b5f621ee4c776699442833554 (diff) |
bpf: Hide unused bpf_patch_call_args
This function is only used when CONFIG_BPF_JIT_ALWAYS_ON is disabled, but
CONFIG_BPF_SYSCALL is enabled. When both are turned off, the prototype is
missing but the unused function is still compiled, as seen from this W=1
warning:
[...]
kernel/bpf/core.c:2075:6: error: no previous prototype for 'bpf_patch_call_args' [-Werror=missing-prototypes]
[...]
Add a matching #ifdef for the definition to leave it out.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[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