[PATCH v4 1/7] mm: Introduce for_each_valid_pfn() and use it from reserve_bootmem_region()

David Woodhouse dwmw2 at infradead.org
Fri Apr 25 15:01:58 PDT 2025


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.

-------------- 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/20250425/008b22dd/attachment.p7s>


More information about the linux-arm-kernel mailing list