Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [avpatel:riscv_sbi_watchdog_v1 94/98] arch/riscv/mm/tlbflush.c:76:3: error: call to undeclared function 'sbi_remote_sfence_vma_asid'; ISO C99 and later do not support implicit function declarations
@ 2026-11-09  8:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-09  8:41 UTC (permalink / raw)
  To: Vikram Singh; +Cc: llvm, oe-kbuild-all, Anup Patel, Rajnesh Kanwal

tree:   https://github.com/avpatel/linux.git riscv_sbi_watchdog_v1
head:   929bf13433e242a3f255f463b2fb44633e102e0d
commit: b4cc5b9ca0cada8221e31b647640bbae515000a1 [94/98] riscv: pmu: Add driver for Control Transfer Records Ext
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20261109/202611091628.SenLNJ0s-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project fc9576e3b179738d99c5babe5cd9d6c1f883e0db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261109/202611091628.SenLNJ0s-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/202611091628.SenLNJ0s-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/riscv/mm/tlbflush.c:76:3: error: call to undeclared function 'sbi_remote_sfence_vma_asid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      76 |                 sbi_remote_sfence_vma_asid(NULL, 0, FLUSH_TLB_MAX_SIZE, FLUSH_TLB_NO_ASID);
         |                 ^
   arch/riscv/mm/tlbflush.c:76:3: note: did you mean 'sbi_remote_fence_i'?
   arch/riscv/include/asm/sbi.h:850:19: note: 'sbi_remote_fence_i' declared here
     850 | static inline int sbi_remote_fence_i(const struct cpumask *cpu_mask) { return -1; }
         |                   ^
   arch/riscv/mm/tlbflush.c:112:3: error: call to undeclared function 'sbi_remote_sfence_vma_asid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     112 |                 sbi_remote_sfence_vma_asid(cmask, start, size, asid);
         |                 ^
   2 errors generated.
--
>> arch/riscv/errata/andes/errata.c:30:16: error: variable has incomplete type 'struct sbiret'
      30 |         struct sbiret ret;
         |                       ^
   arch/riscv/errata/andes/errata.c:30:9: note: forward declaration of 'struct sbiret'
      30 |         struct sbiret ret;
         |                ^
>> arch/riscv/errata/andes/errata.c:36:8: error: call to undeclared function 'sbi_ecall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      36 |         ret = sbi_ecall(ANDES_SBI_EXT_ANDES, ANDES_SBI_EXT_IOCP_SW_WORKAROUND,
         |               ^
   2 errors generated.
--
>> drivers/acpi/riscv/cpuidle.c:73:14: error: use of undeclared identifier 'SBI_HSM_SUSP_NON_RET_BIT'
      73 |         if (state & SBI_HSM_SUSP_NON_RET_BIT)
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
--
>> drivers/acpi/riscv/cppc.c:31:16: error: field has incomplete type 'struct sbiret'
      31 |         struct sbiret ret;
         |                       ^
   drivers/acpi/riscv/cppc.c:31:9: note: forward declaration of 'struct sbiret'
      31 |         struct sbiret ret;
         |                ^
>> drivers/acpi/riscv/cppc.c:38:6: error: use of undeclared identifier 'sbi_spec_version'
      38 |         if (sbi_spec_version >= sbi_mk_version(2, 0) &&
         |             ^~~~~~~~~~~~~~~~
>> drivers/acpi/riscv/cppc.c:38:26: error: call to undeclared function 'sbi_mk_version'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      38 |         if (sbi_spec_version >= sbi_mk_version(2, 0) &&
         |                                 ^
>> drivers/acpi/riscv/cppc.c:39:6: error: call to undeclared function 'sbi_probe_extension'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      39 |             sbi_probe_extension(SBI_EXT_CPPC) > 0) {
         |             ^
>> drivers/acpi/riscv/cppc.c:53:14: error: call to undeclared function 'sbi_ecall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      53 |         data->ret = sbi_ecall(SBI_EXT_CPPC, SBI_CPPC_READ,
         |                     ^
   drivers/acpi/riscv/cppc.c:61:14: error: call to undeclared function 'sbi_ecall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      61 |         data->ret = sbi_ecall(SBI_EXT_CPPC, SBI_CPPC_WRITE,
         |                     ^
>> drivers/acpi/riscv/cppc.c:110:11: error: call to undeclared function 'sbi_err_map_linux_errno'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     110 |                         return sbi_err_map_linux_errno(data.ret.error);
         |                                ^
   drivers/acpi/riscv/cppc.c:151:29: error: call to undeclared function 'sbi_err_map_linux_errno'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     151 |                 return (data.ret.error) ? sbi_err_map_linux_errno(data.ret.error) : 0;
         |                                           ^
   8 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for ERRATA_ANDES
   Depends on [n]: RISCV_SBI [=n]
   Selected by [y]:
   - ARCH_ANDES [=y] && MMU [=y]
   WARNING: unmet direct dependencies detected for HAVE_MIXED_BREAKPOINTS_REGS
   Depends on [n]: HAVE_HW_BREAKPOINT [=n]
   Selected by [y]:
   - RISCV [=y] && PERF_EVENTS [=y]


vim +/sbi_remote_sfence_vma_asid +76 arch/riscv/mm/tlbflush.c

18d2199d81054f Anup Patel        2023-03-28  70  
95594cb40c6e01 Christoph Hellwig 2019-08-21  71  void flush_tlb_all(void)
95594cb40c6e01 Christoph Hellwig 2019-08-21  72  {
9546f00410ed88 Samuel Holland    2024-03-26  73  	if (num_online_cpus() < 2)
9546f00410ed88 Samuel Holland    2024-03-26  74  		local_flush_tlb_all();
9546f00410ed88 Samuel Holland    2024-03-26  75  	else if (riscv_use_sbi_for_rfence())
9d4e8d5fa7dbbb Alexandre Ghiti   2023-10-30 @76  		sbi_remote_sfence_vma_asid(NULL, 0, FLUSH_TLB_MAX_SIZE, FLUSH_TLB_NO_ASID);
dc892fb443224d Samuel Holland    2024-03-26  77  	else
dc892fb443224d Samuel Holland    2024-03-26  78  		on_each_cpu(__ipi_flush_tlb_all, NULL, 1);
95594cb40c6e01 Christoph Hellwig 2019-08-21  79  }
95594cb40c6e01 Christoph Hellwig 2019-08-21  80  

:::::: The code at line 76 was first introduced by commit
:::::: 9d4e8d5fa7dbbb606b355f40d918a1feef821bc5 riscv: Make __flush_tlb_range() loop over pte instead of flushing the whole tlb

:::::: TO: Alexandre Ghiti <alexghiti@rivosinc.com>
:::::: 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-11-09  8:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09  8:41 [avpatel:riscv_sbi_watchdog_v1 94/98] arch/riscv/mm/tlbflush.c:76:3: error: call to undeclared function 'sbi_remote_sfence_vma_asid'; ISO C99 and later do not support implicit function declarations 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