Re: [hnaz-mm:master 343/435] arch/riscv/lib/delay.c:77:3: error: implicit declaration of function 'cpu_relax'

From: Andy Shevchenko
Date: Fri Nov 05 2021 - 09:25:58 EST


On Fri, Nov 05, 2021 at 03:11:20PM +0800, kernel test robot wrote:
> tree: https://github.com/hnaz/linux-mm master
> head: b8280145cf2a894c873fdf91fb2af474c52ac6cc
> commit: eaadd3a1784064254eb06b36fbd4b653f0228478 [343/435] include/linux/delay.h: replace kernel.h with the necessary inclusions
> config: riscv-randconfig-r031-20211103 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6)
> 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://github.com/hnaz/linux-mm/commit/eaadd3a1784064254eb06b36fbd4b653f0228478
> git remote add hnaz-mm https://github.com/hnaz/linux-mm
> git fetch --no-tags hnaz-mm master
> git checkout eaadd3a1784064254eb06b36fbd4b653f0228478
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>

AFAIR the fix is pending to be squashed.


--
With Best Regards,
Andy Shevchenko