]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: fix warning for crash_kexec
authorHari Bathini <hbathini@linux.ibm.com>
Tue, 19 Mar 2024 08:01:52 +0000 (13:31 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 27 Mar 2024 15:52:24 +0000 (08:52 -0700)
commit96b98a6552a90690d7bc18dd71b66312c9ded1fb
tree8cca34488bc16a09f87a152a384eea495be68483
parentafbf75e8da8ce8a0698212953d350697bb4355a6
bpf: fix warning for crash_kexec

With [1], crash dump specific code is moved out of CONFIG_KEXEC_CORE
and placed under CONFIG_CRASH_DUMP, where it is more appropriate.
And since CONFIG_KEXEC & !CONFIG_CRASH_DUMP build option is supported
with that, it led to the below warning:

  "WARN: resolve_btfids: unresolved symbol crash_kexec"

Fix it by using the appropriate #ifdef.

[1] https://lore.kernel.org/all/20240124051254.67105-1-bhe@redhat.com/

Acked-by: Baoquan He <bhe@redhat.com>
Fixes: 02aff8480533 ("crash: split crash dumping code out from kexec_core.c")
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Link: https://lore.kernel.org/r/20240319080152.36987-1-hbathini@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/helpers.c