Skip to content

Commit 11f5222

Browse files
hbathinianakryiko
authored andcommitted
bpf: Fix warning for bpf_cpumask in verifier
Compiling with CONFIG_BPF_SYSCALL & !CONFIG_BPF_JIT throws the below warning: "WARN: resolve_btfids: unresolved symbol bpf_cpumask" Fix it by adding the appropriate #ifdef. Signed-off-by: Hari Bathini <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Jiri Olsa <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Acked-by: David Vernet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 577e443 commit 11f5222

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/bpf/verifier.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5227,7 +5227,9 @@ BTF_ID(struct, prog_test_ref_kfunc)
52275227
#ifdef CONFIG_CGROUPS
52285228
BTF_ID(struct, cgroup)
52295229
#endif
5230+
#ifdef CONFIG_BPF_JIT
52305231
BTF_ID(struct, bpf_cpumask)
5232+
#endif
52315233
BTF_ID(struct, task_struct)
52325234
BTF_SET_END(rcu_protected_types)
52335235

0 commit comments

Comments
 (0)