[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0d89238f3ad9444abfc905a79ff14388a61cf00d.camel@infradead.org>
Date: Thu, 03 Apr 2025 15:17:44 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Mike Rapoport <rppt@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, "Sauerwein, David"
<dssauerw@...zon.de>, Anshuman Khandual <anshuman.khandual@....com>, Ard
Biesheuvel <ardb@...nel.org>, Catalin Marinas <catalin.marinas@....com>,
David Hildenbrand <david@...hat.com>, Marc Zyngier <maz@...nel.org>, Mark
Rutland <mark.rutland@....com>, Mike Rapoport <rppt@...ux.ibm.com>, Will
Deacon <will@...nel.org>, kvmarm@...ts.cs.columbia.edu,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [RFC PATCH 3/3] mm: Implement for_each_valid_pfn() for
CONFIG_SPARSEMEM
On Thu, 2025-04-03 at 17:13 +0300, Mike Rapoport wrote:
>
> > static inline bool first_valid_pfn(unsigned long *p_pfn)
> > {
> > unsigned long pfn = *p_pfn;
> > unsigned long nr = pfn_to_section_nr(pfn);
> > struct mem_section *ms;
> >
> > rcu_read_lock_sched();
> >
> > while (nr <= __highest_present_section_nr) {
> > ms = __pfn_to_section(pfn);
>
> Maybe move the declaration here:
>
> struct mem_section *ms = __pfn_to_section(pfn);
Ack.
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/for_each_valid_pfn
Download attachment "smime.p7s" of type "application/pkcs7-signature" (5069 bytes)
Powered by blists - more mailing lists