[PATCHv7 08/13] kexec_file: Factor out routine to find a symbol in ELF
kernel test robot
lkp at intel.com
Mon Mar 23 00:07:28 PDT 2026
Hi Pingfan,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf-next/net]
[also build test ERROR on bpf-next/master bpf/master akpm-mm/mm-nonmm-unstable linus/master v7.0-rc5 next-20260320]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Pingfan-Liu/bpf-Introduce-kfuncs-to-parser-buffer-content/20260323-084500
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git net
patch link: https://lore.kernel.org/r/20260322014402.8815-9-piliu%40redhat.com
patch subject: [PATCHv7 08/13] kexec_file: Factor out routine to find a symbol in ELF
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260323/202603230851.qOD27RaS-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260323/202603230851.qOD27RaS-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603230851.qOD27RaS-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/kexec_file.c:1276:23: error: redefinition of 'kexec_purgatory_find_symbol'
1276 | static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi,
| ^
kernel/kexec_file.c:958:23: note: previous definition is here
958 | static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi,
| ^
1 error generated.
vim +/kexec_purgatory_find_symbol +1276 kernel/kexec_file.c
1268
1269 /*
1270 * kexec_purgatory_find_symbol - find a symbol in the purgatory
1271 * @pi: Purgatory to search in.
1272 * @name: Name of the symbol.
1273 *
1274 * Return: pointer to symbol in read-only symtab on success, NULL on error.
1275 */
> 1276 static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi,
1277 const char *name)
1278 {
1279 if (!pi->ehdr)
1280 return NULL;
1281
1282 return elf_find_symbol(pi->ehdr, name);
1283 }
1284
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the kexec
mailing list