aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-04-29 15:21:58 +0200
committerDaniel Borkmann <[email protected]>2020-04-30 00:21:22 +0200
commit449e14bfdb83bf772200840a7ac4dcc1d7cacf54 (patch)
tree7732e14fc869413c8315acf9eef20e3929f96b57 /tools/perf/scripts/python/stackcollapse.py
parent0b9ad56b1ea66382a3dcc8e3e7c54967bf8c6d94 (diff)
bpf: Fix unused variable warning
Hiding the only using of bpf_link_type_strs[] in an #ifdef causes an unused-variable warning: kernel/bpf/syscall.c:2280:20: error: 'bpf_link_type_strs' defined but not used [-Werror=unused-variable] 2280 | static const char *bpf_link_type_strs[] = { Move the definition into the same #ifdef. Fixes: f2e10bff16a0 ("bpf: Add support for BPF_OBJ_GET_INFO_BY_FD for bpf_link") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions