]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: fix build when CONFIG_DEBUG_INFO_BTF[_MODULES] is undefined
authorAlan Maguire <alan.maguire@oracle.com>
Sun, 23 Jun 2024 13:52:24 +0000 (14:52 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 23 Jun 2024 19:50:02 +0000 (12:50 -0700)
commit5a532459aa919d055d822d8db4ea2c5c8d511568
treeb5d96e2179b59d62a4a75d3b92e2b5c4dbcc4df5
parent04efaebd72d1d3d9991841051fafc6b195f3676d
bpf: fix build when CONFIG_DEBUG_INFO_BTF[_MODULES] is undefined

Kernel test robot reports that kernel build fails with
resilient split BTF changes.

Examining the associated config and code we see that
btf_relocate_id() is defined under CONFIG_DEBUG_INFO_BTF_MODULES.
Moving it outside the #ifdef solves the issue.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406221742.d2srFLVI-lkp@intel.com/
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/r/20240623135224.27981-1-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c