[ammarfaizi2-block:crng/random/master 1/1] include/linux/random.h:109:10: fatal error: 'asm/archrandom.h' file not found

From: kernel test robot
Date: Wed Jul 06 2022 - 08:06:13 EST


tree: https://github.com/ammarfaizi2/linux-block crng/random/master
head: b06ae5cc5acfc776074b6fa7580a3e33fd999734
commit: b06ae5cc5acfc776074b6fa7580a3e33fd999734 [1/1] random: remove CONFIG_ARCH_RANDOM
config: hexagon-randconfig-r041-20220703 (https://download.01.org/0day-ci/archive/20220706/202207061956.AGbuqVuj-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f553287b588916de09c66e3e32bf75e5060f967f)
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
# https://github.com/ammarfaizi2/linux-block/commit/b06ae5cc5acfc776074b6fa7580a3e33fd999734
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block crng/random/master
git checkout b06ae5cc5acfc776074b6fa7580a3e33fd999734
# 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=hexagon SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

In file included from drivers/base/core.c:27:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:40:
In file included from include/linux/skbuff.h:26:
In file included from include/linux/net.h:18:
>> include/linux/random.h:109:10: fatal error: 'asm/archrandom.h' file not found
#include <asm/archrandom.h>
^~~~~~~~~~~~~~~~~~
1 error generated.


vim +109 include/linux/random.h

5960164fde9bc2 Joe Eykholt 2010-05-26 108
63d77173266c17 H. Peter Anvin 2011-07-31 @109 #include <asm/archrandom.h>
b06ae5cc5acfc7 Jason A. Donenfeld 2022-07-05 110

:::::: The code at line 109 was first introduced by commit
:::::: 63d77173266c1791f1553e9e8ccea65dc87c4485 random: Add support for architectural random hooks

:::::: TO: H. Peter Anvin <hpa@xxxxxxxxx>
:::::: CC: H. Peter Anvin <hpa@xxxxxxxxx>

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