linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 173/182] mm/khugepaged.c:113:25: error: variably modified 'mthp_bitmap' at file scope
@ 2025-10-25  7:14 kernel test robot
  2025-10-26  0:03 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-10-25  7:14 UTC (permalink / raw)
  To: Nico Pache; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   752c460b5865d87117095c915addcce7a68296f2
commit: 8387af7962dd62a2a2cdb741e702b476da440ff0 [173/182] khugepaged: introduce mTHP collapse support
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20251025/202510251530.eJulmicR-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251025/202510251530.eJulmicR-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/oe-kbuild-all/202510251530.eJulmicR-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/kasan-checks.h:5,
                    from include/asm-generic/rwonce.h:26,
                    from ./arch/powerpc/include/generated/asm/rwonce.h:1,
                    from include/linux/compiler.h:382,
                    from include/asm-generic/bug.h:5,
                    from arch/powerpc/include/asm/bug.h:116,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:6,
                    from mm/khugepaged.c:4:
>> mm/khugepaged.c:113:25: error: variably modified 'mthp_bitmap' at file scope
     113 |          DECLARE_BITMAP(mthp_bitmap, HPAGE_PMD_NR);
         |                         ^~~~~~~~~~~
   include/linux/types.h:11:23: note: in definition of macro 'DECLARE_BITMAP'
      11 |         unsigned long name[BITS_TO_LONGS(bits)]
         |                       ^~~~
>> mm/khugepaged.c:114:25: error: variably modified 'mthp_bitmap_mask' at file scope
     114 |          DECLARE_BITMAP(mthp_bitmap_mask, HPAGE_PMD_NR);
         |                         ^~~~~~~~~~~~~~~~
   include/linux/types.h:11:23: note: in definition of macro 'DECLARE_BITMAP'
      11 |         unsigned long name[BITS_TO_LONGS(bits)]
         |                       ^~~~


vim +/mthp_bitmap +113 mm/khugepaged.c

   100	
   101	struct collapse_control {
   102		bool is_khugepaged;
   103	
   104		/* Num pages scanned per node */
   105		u32 node_load[MAX_NUMNODES];
   106	
   107		/* nodemask for allocation fallback */
   108		nodemask_t alloc_nmask;
   109	
   110		/*
   111		 * bitmap used to collapse mTHP sizes.
   112		 */
 > 113		 DECLARE_BITMAP(mthp_bitmap, HPAGE_PMD_NR);
 > 114		 DECLARE_BITMAP(mthp_bitmap_mask, HPAGE_PMD_NR);
   115		struct scan_bit_state mthp_bitmap_stack[MAX_MTHP_BITMAP_STACK];
   116	};
   117	

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-26  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-25  7:14 [akpm-mm:mm-new 173/182] mm/khugepaged.c:113:25: error: variably modified 'mthp_bitmap' at file scope kernel test robot
2025-10-26  0:03 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox