bpf: Fix warning for bpf_cpumask in verifier
authorHari Bathini <hbathini@linux.ibm.com>
Thu, 8 Feb 2024 10:01:15 +0000 (15:31 +0530)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 13 Feb 2024 19:13:39 +0000 (11:13 -0800)
commit11f522256e9043b0fcd2f994278645d3e201d20c
treef6cdb169c58301dcc9d1419af3a9eb0d0e885776
parent577e4432f3ac810049cb7e6b71f4d96ec7c6e894
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 <hbathini@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Stanislav Fomichev <sdf@google.com>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20240208100115.602172-1-hbathini@linux.ibm.com
kernel/bpf/verifier.c