tree:
git://git.infradead.org/users/hch/misc.git set_fs-removal
head: 8783f2261aa42693c0e738e22036228c2b26d782
commit: 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71 [80/83] powerpc: remove address space
overrides using set_fs()
config: powerpc-allnoconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.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
git checkout 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/uaccess.h:9,
from include/linux/crypto.h:21,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/powerpc/kernel/asm-offsets.c:14:
arch/powerpc/include/asm/uaccess.h: In function '__access_ok':
> arch/powerpc/include/asm/uaccess.h:28:13: error: 'seg'
undeclared (first use in this function); did you mean 'sem'?
28 | if (addr
> seg.seg)
| ^~~
| sem
arch/powerpc/include/asm/uaccess.h:28:13: note: each undeclared identifier is reported
only once for each function it appears in
make[2]: *** [scripts/Makefile.build:114: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1175: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +28 arch/powerpc/include/asm/uaccess.h
2df5e8bcca53e5 include/asm-powerpc/uaccess.h Stephen Rothwell 2005-10-29 24
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 25 static
inline int __access_ok(unsigned long addr, unsigned long size,
1d7ac476a3ca01 arch/powerpc/include/asm/uaccess.h Christoph Hellwig 2020-06-11 26
unsigned long limit)
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 27 {
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 @28 if
(addr > seg.seg)
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 29
return 0;
1d7ac476a3ca01 arch/powerpc/include/asm/uaccess.h Christoph Hellwig 2020-06-11 30
return (size == 0 || size - 1 <= limit - addr);
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 31 }
2df5e8bcca53e5 include/asm-powerpc/uaccess.h Stephen Rothwell 2005-10-29 32
:::::: The code at line 28 was first introduced by commit
:::::: ef85dffd4251ff6c23056651f6f83bdce83cd1cf powerpc: Avoid comparison of unsigned long
>= 0 in __access_ok()
:::::: TO: Mathieu Malaterre <malat(a)debian.org>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org