From: sashiko-bot@kernel.org
To: "Muchun Song" <songmuchun@bytedance.com>,
"Oscar Salvador" <osalvador@suse.de>,
"Mike Rapoport" <rppt@kernel.org>,
"David Hildenbrand" <david@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: "Muchun Song" <muchun.song@linux.dev>,
"Lance Yang" <lance.yang@linux.dev>,
"Qi Zheng" <qi.zheng@linux.dev>,
linux-mm@kvack.org
Subject: Re: [PATCH 1/6] mm/hugetlb_vmemmap: remove the vmemmap savings boot message
Date: Tue, 24 Nov 2026 11:16:17 +0000 [thread overview]
Message-ID: <sashiko-outbox-231028@kernel.org> (raw)
In-Reply-To: <20261124110530.3004071-2-songmuchun@bytedance.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mm: missing const in !CONFIG_HUGETLB_PAGE huge_page_order()
stub
--
commit 852c6ee3c3138346a4a6991f35b8658e23f3cb65
Author: Muchun Song <muchun.song@linux.dev>
mm/hugetlb_vmemmap: remove the vmemmap savings boot message
This commit removes the boot message reporting potential HugeTLB vmemmap
savings along with hugetlb_vmemmap_optimizable_size(), and updates
hugetlb_vmemmap_optimizable() to check vmemmap_optimizable_order() via
huge_page_order().
> diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
> index 0d5414392d870..b5b877ed5b92c 100644
> --- a/include/linux/hugetlb.h
> +++ b/include/linux/hugetlb.h
> @@ -812,7 +812,7 @@ static inline unsigned long huge_page_mask(struct hstate *h)
> return h->mask;
> }
>
> -static inline unsigned int huge_page_order(struct hstate *h)
> +static inline unsigned int huge_page_order(const struct hstate *h)
> {
> return h->order;
> }
[Severity: Medium]
Should the !CONFIG_HUGETLB_PAGE stub of huge_page_order() in
include/linux/hugetlb.h also take a const struct hstate *h?
hugetlb_vmemmap_optimizable(const struct hstate *h) is defined outside
#ifdef CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP and now passes h to
huge_page_order(h) behind an IS_ENABLED() check. When a file such as
mm/memory-failure.c includes mm/hugetlb_vmemmap.h with
CONFIG_MEMORY_FAILURE=y and CONFIG_HUGETLB_PAGE=n, calling the non-const
stub triggers a -Wdiscarded-qualifiers warning (or build failure with
CONFIG_WERROR=y).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124110530.3004071-1-songmuchun@bytedance.com?part=1
next prev parent reply other threads:[~2026-11-24 11:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 11:05 [PATCH 0/6] mm: Simplify HugeTLB vmemmap optimization code Muchun Song
2026-11-24 11:05 ` [PATCH 1/6] mm/hugetlb_vmemmap: remove the vmemmap savings boot message Muchun Song
2026-11-24 11:16 ` sashiko-bot [this message]
2026-11-24 11:18 ` Muchun Song
2026-11-24 11:05 ` [PATCH 2/6] mm/hugetlb_vmemmap: fold vmemmap_should_optimize() into its callers Muchun Song
2026-11-24 11:05 ` [PATCH 3/6] mm/hugetlb_vmemmap: drop the redundant hstate argument Muchun Song
2026-11-24 11:05 ` [PATCH 4/6] mm/hugetlb_vmemmap: open-code free_vmemmap_page() Muchun Song
2026-11-24 11:05 ` [PATCH 5/6] mm/hugetlb_vmemmap: drop obsolete restore refcount warning Muchun Song
2026-11-24 11:05 ` [PATCH 6/6] mm/vmemmap-optimization: centralize the vmemmap optimization support check Muchun Song
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=sashiko-outbox-231028@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=lance.yang@linux.dev \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
--cc=osalvador@suse.de \
--cc=qi.zheng@linux.dev \
--cc=rppt@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=songmuchun@bytedance.com \
/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