[mingo-tip:sched/headers 630/2382] include/asm-generic/barrier.h:16:10: fatal error: asm/vdso/processor.h: No such file or directory

From: kernel test robot
Date: Tue Jan 11 2022 - 05:24:24 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 1a880941a087613ed42f77001229edfcf75ea8a5
commit: e60fbf3d074e5f8a02d0073637b920d61d281ad1 [630/2382] headers/deps: Add header dependencies to .h files: <asm/vdso/processor.h>
config: sh-randconfig-p002-20220111 (https://download.01.org/0day-ci/archive/20220111/202201111825.nOYzBDWe-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=e60fbf3d074e5f8a02d0073637b920d61d281ad1
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout e60fbf3d074e5f8a02d0073637b920d61d281ad1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh olddefconfig

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

All errors (new ones prefixed by >>):

In file included from arch/sh/include/asm/barrier.h:43,
from arch/sh/include/asm/bitops.h:11,
from include/linux/bitops.h:28,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
>> include/asm-generic/barrier.h:16:10: fatal error: asm/vdso/processor.h: No such file or directory
16 | #include <asm/vdso/processor.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:121: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1197: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +16 include/asm-generic/barrier.h

15
> 16 #include <asm/vdso/processor.h>
17 #include <linux/compiler.h>
18 #include <asm/rwonce.h>
19

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx