[csky-linux:riscv_compat_v2_sv48_v3_xtpbmt 3/32] error: include/uapi/asm-generic/fcntl.h: leak CONFIG_COMPAT to user-space

From: kernel test robot
Date: Mon Jan 03 2022 - 03:33:22 EST


tree: https://github.com/c-sky/csky-linux riscv_compat_v2_sv48_v3_xtpbmt
head: ff10a70d2ed4fbef7238b315145d1aa0d137f80f
commit: 838b95dc803e1fba08bd1aca85bb3c40f174548c [3/32] asm-generic: fcntl: compat: Remove duplicate definitions
config: arm-randconfig-c002-20220102 (https://download.01.org/0day-ci/archive/20220103/202201031613.GNQ5t0pt-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 104a827ea6de0cbe0f5faef4407552ede31d165c)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/c-sky/csky-linux/commit/838b95dc803e1fba08bd1aca85bb3c40f174548c
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux riscv_compat_v2_sv48_v3_xtpbmt
git checkout 838b95dc803e1fba08bd1aca85bb3c40f174548c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm prepare

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

All errors (new ones prefixed by >>):

>> error: include/uapi/asm-generic/fcntl.h: leak CONFIG_COMPAT to user-space
make[2]: *** [scripts/Makefile.headersinst:63: usr/include/asm-generic/fcntl.h] Error 1
make[2]: Target '__headers' not remade because of errors.
make[1]: *** [Makefile:1283: headers] 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.

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