All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: kernel test robot <lkp@intel.com>, Michael Ellerman <mpe@ellerman.id.au>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [linux-next:master 7055/8400] include/linux/compiler_types.h:510:45: error: call to '__compiletime_assert_303' declared with attribute error: BUILD_BUG_ON failed: ALIGN_DOWN(MODULES_VADDR, SZ_256M) < TASK_SIZE
Date: Tue, 3 Sep 2024 18:49:26 +0200	[thread overview]
Message-ID: <4c575fd3-0495-4007-bc56-d252e18675c7@csgroup.eu> (raw)
In-Reply-To: <202409022326.gjEmSP9K-lkp@intel.com>



Le 02/09/2024 à 17:21, kernel test robot a écrit :
> tree:   https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux-next.git&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C6fb61314a5dd4f0fc8e808dccb6303dd%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638608873337867768%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=H5sX0rEqtyFbPUsWEKZD0cj28q2zgyqJn1yzu0nQbWo%3D&reserved=0 master
> head:   ecc768a84f0b8e631986f9ade3118fa37852fef0
> commit: 2f2b9a3adc66e978a1248ffb38df8477e8e97c57 [7055/8400] powerpc/32s: Reduce default size of module/execmem area
> config: powerpc-buildonly-randconfig-r006-20220613 (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdownload.01.org%2F0day-ci%2Farchive%2F20240902%2F202409022326.gjEmSP9K-lkp%40intel.com%2Fconfig&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C6fb61314a5dd4f0fc8e808dccb6303dd%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638608873337877719%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=bgGDd4mH5eoPA4vSpBfvYt2LwGGNyAXLDhQF52TKovM%3D&reserved=0)
> compiler: powerpc-linux-gcc (GCC) 13.3.0
> reproduce (this is a W=1 build): (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdownload.01.org%2F0day-ci%2Farchive%2F20240902%2F202409022326.gjEmSP9K-lkp%40intel.com%2Freproduce&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C6fb61314a5dd4f0fc8e808dccb6303dd%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638608873337883106%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=xlUQb5dKchpZQgrvc1l6JML%2FWpGE87zJ930ehEXAdcE%3D&reserved=0)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Foe-kbuild-all%2F202409022326.gjEmSP9K-lkp%40intel.com%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C6fb61314a5dd4f0fc8e808dccb6303dd%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638608873337888358%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=DLTfKPILhI%2B8s3tLIq34L6jcWoL%2FysLWHcYDknvxRlc%3D&reserved=0
> 
> All errors (new ones prefixed by >>):
> 
>     In file included from <command-line>:
>     arch/powerpc/mm/book3s32/mmu.c: In function 'mmu_mark_initmem_nx':
>>> include/linux/compiler_types.h:510:45: error: call to '__compiletime_assert_303' declared with attribute error: BUILD_BUG_ON failed: ALIGN_DOWN(MODULES_VADDR, SZ_256M) < TASK_SIZE
>       510 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)

You hit the BUILD_BUG_ON() that was added by that commit, the behaviour 
is as expected: you have set CONFIG_TASK_SIZE_BOOL which is reserved for 
experts, then you have set CONFIG_TASK_SIZE to 0xc0000000 and 
CONFIG_PAGE_OFFSET has the same value which means there is no space for 
modules. I don't think I can do much about it.

If you hadn't CONFIG_TASK_SIZE_BOOL you would have got the default value 
which is 0xb0000000 which is all fine.

Christophe


  reply	other threads:[~2024-09-03 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-02 15:21 [linux-next:master 7055/8400] include/linux/compiler_types.h:510:45: error: call to '__compiletime_assert_303' declared with attribute error: BUILD_BUG_ON failed: ALIGN_DOWN(MODULES_VADDR, SZ_256M) < TASK_SIZE kernel test robot
2024-09-03 16:49 ` Christophe Leroy [this message]
2024-09-04  4:03   ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c575fd3-0495-4007-bc56-d252e18675c7@csgroup.eu \
    --to=christophe.leroy@csgroup.eu \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=mpe@ellerman.id.au \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.