[RFC PATCH 3/3] mm: Implement for_each_valid_pfn() for CONFIG_SPARSEMEM
David Woodhouse
dwmw2 at infradead.org
Thu Apr 3 07:17:44 PDT 2025
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5069 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250403/03510b2e/attachment.p7s>
More information about the linux-arm-kernel
mailing list