From: sashiko-bot@kernel.org
To: "Muchun Song" <songmuchun@bytedance.com>,
"Oscar Salvador" <osalvador@suse.de>,
"David Hildenbrand" <david@kernel.org>,
"Mike Rapoport" <rppt@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: "Muchun Song" <muchun.song@linux.dev>,
"Liam R . Howlett" <liam@infradead.org>,
"Vlastimil Babka" <vbabka@kernel.org>,
"Michal Hocko" <mhocko@suse.com>,
"Miaohe Lin" <linmiaohe@huawei.com>,
"Naoya Horiguchi" <nao.horiguchi@gmail.com>,
"Lance Yang" <lance.yang@linux.dev>,
"Qi Zheng" <qi.zheng@linux.dev>,
linux-mm@kvack.org, "Huacai Chen" <chenhuacai@kernel.org>
Subject: Re: [PATCH v2 1/3] mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h
Date: Sun, 06 Dec 2026 08:35:26 +0000 [thread overview]
Message-ID: <sashiko-outbox-252286@kernel.org> (raw)
In-Reply-To: <20261206081324.8274-2-songmuchun@bytedance.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mm: unused vmemmap-optimization.h include remains in
arch/riscv/mm/init.c
--
commit 777766be15729c82e8bc1a4cd01cf53ddb061517
Author: Muchun Song <muchun.song@linux.dev>
mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h
This commit moves MAX_FOLIO_VMEMMAP_ALIGN from vmemmap-optimization.h to
mmzone.h, gates it on compound_info_has_mask(), and drops the
vmemmap-optimization.h include from arch/loongarch/include/asm/pgtable.h.
> diff --git a/arch/loongarch/include/asm/pgtable.h b/arch/loongarch/include/asm/pgtable.h
> index f876031351319..cf29a4c8ac593 100644
> --- a/arch/loongarch/include/asm/pgtable.h
> +++ b/arch/loongarch/include/asm/pgtable.h
> @@ -72,7 +72,6 @@
>
> #include <linux/mm_types.h>
> #include <linux/mmzone.h>
> -#include <linux/vmemmap-optimization.h>
> #include <asm/fixmap.h>
> #include <asm/sparsemem.h>
[Severity: Low]
Should #include <linux/vmemmap-optimization.h> also be dropped from
arch/riscv/mm/init.c?
Commit d3a699634c2a ("mm/sparse-vmemmap: move vmemmap optimization helpers
to a public header") added it solely for MAX_FOLIO_VMEMMAP_ALIGN in
VMEMMAP_ADDR_ALIGN. No other symbol from vmemmap-optimization.h is used
there, and linux/mmzone.h is already included via linux/mm.h.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206081324.8274-1-songmuchun@bytedance.com?part=1
next prev parent reply other threads:[~2026-12-06 8:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 8:13 [PATCH v2 0/3] mm: Track vmemmap optimization state in shared backing pages Muchun Song
2026-12-06 8:13 ` [PATCH v2 1/3] mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h Muchun Song
2026-12-06 8:35 ` sashiko-bot [this message]
2026-12-06 8:13 ` [PATCH v2 2/3] mm/vmemmap-optimization: track optimization state in shared vmemmap pages Muchun Song
2026-12-06 8:35 ` sashiko-bot
2026-12-06 8:13 ` [PATCH v2 3/3] mm/hugetlb_vmemmap: remove HPG_vmemmap_optimized 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-252286@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=chenhuacai@kernel.org \
--cc=david@kernel.org \
--cc=lance.yang@linux.dev \
--cc=liam@infradead.org \
--cc=linmiaohe@huawei.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=muchun.song@linux.dev \
--cc=nao.horiguchi@gmail.com \
--cc=osalvador@suse.de \
--cc=qi.zheng@linux.dev \
--cc=rppt@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=songmuchun@bytedance.com \
--cc=vbabka@kernel.org \
/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