All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: arch/powerpc/mm/mem.c:428:2: error: call to '__compiletime_assert_508' declared with 'error' attribute: BUILD_BUG_ON failed: TASK_SIZE > MODULES_VADDR
Date: Sat, 26 Apr 2025 10:32:10 +0800	[thread overview]
Message-ID: <202504261027.aDQM0ra4-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "__compiletime_assert_NNN"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Mike Rapoport (IBM)" <rppt@kernel.org>
CC: Luis Chamberlain <mcgrof@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   02ddfb981de88a2c15621115dd7be2431252c568
commit: 7582b7be16d0ba90e3dbd9575a730cabd9eb852a kprobes: remove dependency on CONFIG_MODULES
date:   12 months ago
:::::: branch date: 30 hours ago
:::::: commit date: 12 months ago
config: powerpc-randconfig-r111-20250426 (https://download.01.org/0day-ci/archive/20250426/202504261027.aDQM0ra4-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce: (https://download.01.org/0day-ci/archive/20250426/202504261027.aDQM0ra4-lkp@intel.com/reproduce)

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://lore.kernel.org/r/202504261027.aDQM0ra4-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/mm/mem.c:15:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:2210:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> arch/powerpc/mm/mem.c:428:2: error: call to '__compiletime_assert_508' declared with 'error' attribute: BUILD_BUG_ON failed: TASK_SIZE > MODULES_VADDR
     428 |         BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR);
         |         ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^
   include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^
   include/linux/compiler_types.h:467:2: note: expanded from macro 'compiletime_assert'
     467 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:455:2: note: expanded from macro '_compiletime_assert'
     455 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:448:4: note: expanded from macro '__compiletime_assert'
     448 |                         prefix ## suffix();                             \
         |                         ^
   <scratch space>:189:1: note: expanded from here
     189 | __compiletime_assert_508
         | ^
   1 warning and 1 error generated.


vim +428 arch/powerpc/mm/mem.c

0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  413) 
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  414) struct execmem_info __init *execmem_arch_setup(void)
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  415) {
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  416) 	pgprot_t kprobes_prot = strict_module_rwx_enabled() ? PAGE_KERNEL_ROX : PAGE_KERNEL_EXEC;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  417) 	pgprot_t prot = strict_module_rwx_enabled() ? PAGE_KERNEL : PAGE_KERNEL_EXEC;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  418) 	unsigned long fallback_start = 0, fallback_end = 0;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  419) 	unsigned long start, end;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  420) 
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  421) 	/*
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  422) 	 * BOOK3S_32 and 8xx define MODULES_VADDR for text allocations and
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  423) 	 * allow allocating data in the entire vmalloc space
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  424) 	 */
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  425) #ifdef MODULES_VADDR
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  426) 	unsigned long limit = (unsigned long)_etext - SZ_32M;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  427) 
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05 @428) 	BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR);

:::::: The code at line 428 was first introduced by commit
:::::: 0cc2dc4902f425e346d46deeea2352d9fba75375 arch: make execmem setup available regardless of CONFIG_MODULES

:::::: TO: Mike Rapoport (IBM) <rppt@kernel.org>
:::::: CC: Luis Chamberlain <mcgrof@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-04-26  2:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202504261027.aDQM0ra4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@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.