From: kernel test robot <lkp@intel.com>
To: Nico Pache <npache@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [akpm-mm:mm-new 173/182] mm/khugepaged.c:113:25: error: variably modified 'mthp_bitmap' at file scope
Date: Sat, 25 Oct 2025 15:14:10 +0800 [thread overview]
Message-ID: <202510251530.eJulmicR-lkp@intel.com> (raw)
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
next reply other threads:[~2025-10-25 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-25 7:14 kernel test robot [this message]
2025-10-26 0:03 ` [akpm-mm:mm-new 173/182] mm/khugepaged.c:113:25: error: variably modified 'mthp_bitmap' at file scope Andrew Morton
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=202510251530.eJulmicR-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=npache@redhat.com \
--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.