Re: [PATCH v4 1/7] mm: Introduce for_each_valid_pfn() and use it from reserve_bootmem_region()
From: David Woodhouse
Date: Fri Apr 25 2025 - 18:02:34 EST
On Thu, 2025-04-24 at 23:11 +0200, David Hildenbrand wrote:
>
> > + unsigned long pfn;
> >
> > - for (; start_pfn < end_pfn; start_pfn++) {
> > - if (pfn_valid(start_pfn)) {
> > - struct page *page = pfn_to_page(start_pfn);
> > + for_each_valid_pfn (pfn, PFN_DOWN(start), PFN_UP(end)) {
>
> ^ space should be removed
I was treating for_each_foobar() like for(), which always *does* have
the space before the parentheses. But a quick grep shows that that's
the minority, by at least two orders of magnitude. Fixing it locally;
thanks.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature