linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
@ 2022-09-14 11:37 kernel test robot
  2022-09-14 12:27 ` Conor.Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-09-14 11:37 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: llvm, kbuild-all, Linux Memory Management List, Conor Dooley

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f117c01187301a087412bd6697fcf5463cb427d8
commit: 8f7e001e0325de63a42f23342ac3b8139150c5cf [6256/7172] RISC-V: Clean up the Zicbom block size probing
config: riscv-randconfig-r042-20220914 (https://download.01.org/0day-ci/archive/20220914/202209141913.Nxzv3hwM-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f7e001e0325de63a42f23342ac3b8139150c5cf
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 8f7e001e0325de63a42f23342ac3b8139150c5cf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/errata/thead/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size'
           riscv_cbom_block_size = L1_CACHE_BYTES;
           ^
   1 error generated.


vim +/riscv_cbom_block_size +40 arch/riscv/errata/thead/errata.c

    29	
    30	static bool errata_probe_cmo(unsigned int stage,
    31				     unsigned long arch_id, unsigned long impid)
    32	{
    33	#ifdef CONFIG_ERRATA_THEAD_CMO
    34		if (arch_id != 0 || impid != 0)
    35			return false;
    36	
    37		if (stage == RISCV_ALTERNATIVES_EARLY_BOOT)
    38			return false;
    39	
  > 40		riscv_cbom_block_size = L1_CACHE_BYTES;
    41		riscv_noncoherent_supported();
    42		return true;
    43	#else
    44		return false;
    45	#endif
    46	}
    47	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-14 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14 11:37 [linux-next:master 6256/7172] arch/riscv/errata/thead/errata.c:40:2: error: use of undeclared identifier 'riscv_cbom_block_size' kernel test robot
2022-09-14 12:27 ` Conor.Dooley
2022-09-14 14:38   ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).