From: Zi Yan <ziy@nvidia.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kernel test robot <lkp@intel.com>,
oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [akpm-mm:mm-new 31/59] mm/mm_init.c:1512:30: error: 'PAGE_BLOCK_ORDER' undeclared; did you mean 'PAGE_BLOCK_ORDER_CEIL'?
Date: Wed, 04 Jun 2025 09:29:11 -0400 [thread overview]
Message-ID: <EF1B1979-4D72-472D-8655-6B21AD26AA58@nvidia.com> (raw)
In-Reply-To: <202506042058.XgvABCE0-lkp@intel.com>
On 4 Jun 2025, at 9:06, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head: 80bb0b2983e95be26d929303d589276875c8900a
> commit: 2bb7d2079ada079bd9f25c92e6a4618ee1ce22db [31/59] mm: rename CONFIG_PAGE_BLOCK_ORDER to CONFIG_PAGE_BLOCK_ORDER_CEIL.
> config: powerpc64-randconfig-002-20250604 (https://download.01.org/0day-ci/archive/20250604/202506042058.XgvABCE0-lkp@intel.com/config)
> compiler: powerpc64-linux-gcc (GCC) 11.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250604/202506042058.XgvABCE0-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/202506042058.XgvABCE0-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> mm/mm_init.c: In function 'set_pageblock_order':
>>> mm/mm_init.c:1512:30: error: 'PAGE_BLOCK_ORDER' undeclared (first use in this function); did you mean 'PAGE_BLOCK_ORDER_CEIL'?
> 1512 | unsigned int order = PAGE_BLOCK_ORDER;
> | ^~~~~~~~~~~~~~~~
> | PAGE_BLOCK_ORDER_CEIL
> mm/mm_init.c:1512:30: note: each undeclared identifier is reported only once for each function it appears in
>
>
> vim +1512 mm/mm_init.c
>
Thanks. This patch should fix it.
From 616cc58d747d4b1c03e8db613b7f05c5005134d4 Mon Sep 17 00:00:00 2001
From: Zi Yan <ziy@nvidia.com>
Date: Wed, 4 Jun 2025 09:27:03 -0400
Subject: [PATCH] fixup: rename the missed PAGE_BLOCK_ORDER to
PAGE_BLOCK_ORDER_CEIL.
Signed-off-by: Zi Yan <ziy@nvidia.com>
---
mm/mm_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mm_init.c b/mm/mm_init.c
index f2944748f526..38a1abd49e57 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -1509,7 +1509,7 @@ static inline void setup_usemap(struct zone *zone) {}
/* Initialise the number of pages represented by NR_PAGEBLOCK_BITS */
void __init set_pageblock_order(void)
{
- unsigned int order = PAGE_BLOCK_ORDER;
+ unsigned int order = PAGE_BLOCK_ORDER_CEIL;
/* Check that pageblock_nr_pages has not already been setup */
if (pageblock_order)
--
2.47.2
--
Best Regards,
Yan, Zi
prev parent reply other threads:[~2025-06-04 13:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 13:06 kernel test robot
2025-06-04 13:29 ` Zi Yan [this message]
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=EF1B1979-4D72-472D-8655-6B21AD26AA58@nvidia.com \
--to=ziy@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox