[powerpc:next-test 168/182] include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_171' declared with attribute error: BUILD_BUG_ON failed: TASK_SIZE > MODULES_VADDR

Christophe Leroy christophe.leroy at csgroup.eu
Fri Apr 9 14:55:35 AEST 2021



Le 09/04/2021 à 02:41, kernel test robot a écrit :
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test
> head:   3ac6488df9160f52bbd8b8ec3387a53ac3d0f2eb
> commit: 093cb12967d4bde01a4170fd342bc0d443004599 [168/182] powerpc/32s: Define a MODULE area below kernel text all the time
> config: powerpc64-randconfig-c004-20210408 (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
>          # https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=093cb12967d4bde01a4170fd342bc0d443004599
>          git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
>          git fetch --no-tags powerpc next-test
>          git checkout 093cb12967d4bde01a4170fd342bc0d443004599
>          # save the attached .config to linux build tree
>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp at intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>     In file included from <command-line>:
>     arch/powerpc/kernel/module.c: In function 'module_alloc':
>>> include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_171' declared with attribute error: BUILD_BUG_ON failed: TASK_SIZE > MODULES_VADDR

I don't think there is much we can do about that.

TASK_SIZE is set to 0xb0000000 by default on BOOK3S/32 in Kconfig.

If the user forces a greater value without increasing PAGE_OFFSET accordingly, it won't work. The 
BUILD_BUG_ON() is there to catch it.

Christophe


More information about the Linuxppc-dev mailing list