[csky-linux:riscv_compat_v2 2/17] error: include/uapi/asm-generic/fcntl.h: leak CONFIG_COMPAT to user-space

From: kernel test robot
Date: Tue Dec 28 2021 - 05:16:03 EST


tree: https://github.com/c-sky/csky-linux riscv_compat_v2
head: ea94b57a9abaf61f0d0fb41516fab3df16c62c9e
commit: da4662b00ccfe39feabcfef759497af3c071d8ad [2/17] asm-generic: fcntl: compat: Remove duplicate definitions
config: csky-buildonly-randconfig-r001-20211228 (https://download.01.org/0day-ci/archive/20211228/202112281817.hJFO6Vw8-lkp@xxxxxxxxx/config)
compiler: csky-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://github.com/c-sky/csky-linux/commit/da4662b00ccfe39feabcfef759497af3c071d8ad
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux riscv_compat_v2
git checkout da4662b00ccfe39feabcfef759497af3c071d8ad
# 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=csky 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