[linux-next:master 10734/10788] arch/riscv/kvm/aia_imsic.c:237:9: error: call to undeclared function 'arch_atomic_long_fetch_or'; ISO C99 and later do not support implicit function declarations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   47045630bc409ce6606d97b790895210dd1d517d
commit: 45d0f6cbccb6e26047d42baa32de1df7bbc25f97 [10734/10788] Merge branch 'riscv_kvm_next' of https://github.com/kvm-riscv/linux.git
config: riscv-randconfig-r042-20230619 (https://download.01.org/0day-ci/archive/20230619/202306191640.NE97q8G3-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230619/202306191640.NE97q8G3-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306191640.NE97q8G3-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> arch/riscv/kvm/aia_imsic.c:237:9: error: call to undeclared function 'arch_atomic_long_fetch_or'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     237 |         return arch_atomic_long_fetch_or(val, (atomic_long_t *)ptr);
         |                ^
   arch/riscv/kvm/aia_imsic.c:237:9: note: did you mean 'raw_atomic_long_fetch_or'?
   include/linux/atomic/atomic-long.h:1087:1: note: 'raw_atomic_long_fetch_or' declared here
    1087 | raw_atomic_long_fetch_or(long i, atomic_long_t *v)
         | ^
   1 error generated.


vim +/arch_atomic_long_fetch_or +237 arch/riscv/kvm/aia_imsic.c

2f68d542041204 Anup Patel 2023-06-15  232  
2f68d542041204 Anup Patel 2023-06-15  233  static unsigned long imsic_mrif_atomic_or(struct imsic_mrif *mrif,
2f68d542041204 Anup Patel 2023-06-15  234  					  unsigned long *ptr,
2f68d542041204 Anup Patel 2023-06-15  235  					  unsigned long val)
2f68d542041204 Anup Patel 2023-06-15  236  {
2f68d542041204 Anup Patel 2023-06-15 @237  	return arch_atomic_long_fetch_or(val, (atomic_long_t *)ptr);
2f68d542041204 Anup Patel 2023-06-15  238  }
2f68d542041204 Anup Patel 2023-06-15  239  

:::::: The code at line 237 was first introduced by commit
:::::: 2f68d5420412040ec974557198d6a886708479c0 RISC-V: KVM: Add in-kernel virtualization of AIA IMSIC

:::::: TO: Anup Patel <apatel@xxxxxxxxxxxxxxxx>
:::::: CC: Anup Patel <anup@xxxxxxxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux