bpf: Compile out btf_parse_module() if module BTF is not enabled
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 11 Nov 2020 04:06:45 +0000 (20:06 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 11 Nov 2020 04:15:07 +0000 (20:15 -0800)
commit7112d127984bd7b0c8ded7973b358829f16735f5
tree425d9859fc965a8f49ae5e5a644f9f2216b1b6a3
parent9600d623dba42499e78f7dccbc12e392392a90a5
bpf: Compile out btf_parse_module() if module BTF is not enabled

Make sure btf_parse_module() is compiled out if module BTFs are not enabled.

Fixes: 36e68442d1af ("bpf: Load and verify kernel module BTFs")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201111040645.903494-1-andrii@kernel.org
kernel/bpf/btf.c