Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/riscv-cfi-vdso-alternative 2/4] arch/riscv/kernel/alternative.c:183:20: error: use of undeclared identifier 'vdso_start'
@ 2026-04-30  3:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-30  3:55 UTC (permalink / raw)
  To: Thomas Weißschuh ; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/riscv-cfi-vdso-alternative
head:   fa83dca7c15f5aefda0432bda4aa4a802766ca70
commit: 45f16afdf0331f9d95eac2a3d328f715fbe316bb [2/4] riscv: alternative: Replace ifdeffery around apply_vdso_alternatives() with IS_ENABLED()
config: riscv-randconfig-001-20260430 (https://download.01.org/0day-ci/archive/20260430/202604301147.qlAxtlut-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604301147.qlAxtlut-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604301147.qlAxtlut-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/riscv/kernel/alternative.c:183:20: error: use of undeclared identifier 'vdso_start'
     183 |         hdr = (Elf_Ehdr *)vdso_start;
         |                           ^~~~~~~~~~
   1 error generated.


vim +/vdso_start +183 arch/riscv/kernel/alternative.c

d14ca1f8d30399 Heiko Stuebner 2022-05-11  175  
cabfd146b37146 Jisheng Zhang  2023-01-29  176  static void __init apply_vdso_alternatives(void)
cabfd146b37146 Jisheng Zhang  2023-01-29  177  {
cabfd146b37146 Jisheng Zhang  2023-01-29  178  	const Elf_Ehdr *hdr;
cabfd146b37146 Jisheng Zhang  2023-01-29  179  	const Elf_Shdr *shdr;
cabfd146b37146 Jisheng Zhang  2023-01-29  180  	const Elf_Shdr *alt;
cabfd146b37146 Jisheng Zhang  2023-01-29  181  	struct alt_entry *begin, *end;
cabfd146b37146 Jisheng Zhang  2023-01-29  182  
cabfd146b37146 Jisheng Zhang  2023-01-29 @183  	hdr = (Elf_Ehdr *)vdso_start;
cabfd146b37146 Jisheng Zhang  2023-01-29  184  	shdr = (void *)hdr + hdr->e_shoff;
cabfd146b37146 Jisheng Zhang  2023-01-29  185  	alt = find_section(hdr, shdr, ".alternative");
cabfd146b37146 Jisheng Zhang  2023-01-29  186  	if (!alt)
cabfd146b37146 Jisheng Zhang  2023-01-29  187  		return;
cabfd146b37146 Jisheng Zhang  2023-01-29  188  
cabfd146b37146 Jisheng Zhang  2023-01-29  189  	begin = (void *)hdr + alt->sh_offset,
cabfd146b37146 Jisheng Zhang  2023-01-29  190  	end = (void *)hdr + alt->sh_offset + alt->sh_size,
cabfd146b37146 Jisheng Zhang  2023-01-29  191  
cabfd146b37146 Jisheng Zhang  2023-01-29  192  	_apply_alternatives((struct alt_entry *)begin,
cabfd146b37146 Jisheng Zhang  2023-01-29  193  			    (struct alt_entry *)end,
cabfd146b37146 Jisheng Zhang  2023-01-29  194  			    RISCV_ALTERNATIVES_BOOT);
cabfd146b37146 Jisheng Zhang  2023-01-29  195  }
cabfd146b37146 Jisheng Zhang  2023-01-29  196  

:::::: The code at line 183 was first introduced by commit
:::::: cabfd146b371462ed480a968f98eb0c2c80e3c8a riscv: alternative: patch alternatives in the vDSO

:::::: TO: Jisheng Zhang <jszhang@kernel.org>
:::::: CC: Palmer Dabbelt <palmer@rivosinc.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-30  3:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  3:55 [thomas-weissschuh:b4/riscv-cfi-vdso-alternative 2/4] arch/riscv/kernel/alternative.c:183:20: error: use of undeclared identifier 'vdso_start' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox