Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Muchun Song <muchun.song@linux.dev>
To: sashiko-reviews@lists.linux.dev
Cc: Muchun Song <muchun.song@linux.dev>,
	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>,
	"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, 6 Dec 2026 16:40:05 +0800	[thread overview]
Message-ID: <34A42828-2AB7-4843-8487-17214BF1D6F1@linux.dev> (raw)
In-Reply-To: <sashiko-outbox-252286@kernel.org>



> On Dec 6, 2026, at 16:35, sashiko-bot@kernel.org wrote:
> 
> 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?

Yep, a good point of cleanup.

> 
> 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



  reply	other threads:[~2026-12-06  8:40 UTC|newest]

Thread overview: 7+ 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
2026-12-06  8:40     ` Muchun Song [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=34A42828-2AB7-4843-8487-17214BF1D6F1@linux.dev \
    --to=muchun.song@linux.dev \
    --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=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