[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8877fbd0-db74-4dd8-9ba3-8e49fc5e1bd0@redhat.com>
Date: Tue, 11 Mar 2025 10:34:18 +0100
From: David Hildenbrand <david@...hat.com>
To: Gavin Shan <gshan@...hat.com>, linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org, osalvador@...e.de,
gregkh@...uxfoundation.org, rafael@...nel.org, dakr@...nel.org,
akpm@...ux-foundation.org, shan.gavin@...il.com
Subject: Re: [PATCH v2 2/3] drivers/base/memory: Improve
add_boot_memory_block()
On 11.03.25 01:46, Gavin Shan wrote:
> It's unnecessary to count the present sections for the specified
> block since the block will be added if any section in the block
> is present. Besides, for_each_present_section_nr() can be reused
> as Andrew Morton suggested.
>
> Improve by using for_each_present_section_nr() and dropping the
> unnecessary @section_count.
>
> No functional changes intended.
>
> Signed-off-by: Gavin Shan <gshan@...hat.com>
> ---
Acked-by: David Hildenbrand <david@...hat.com>
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists