[PATCH v2 17/17] memblock: use separate iterators for memory and reserved regions
Thomas Bogendoerfer
tsbogend at alpha.franken.de
Wed Aug 5 06:58:44 EDT 2020
On Sun, Aug 02, 2020 at 07:36:01PM +0300, Mike Rapoport wrote:
> From: Mike Rapoport <rppt at linux.ibm.com>
>
> for_each_memblock() is used to iterate over memblock.memory in
> a few places that use data from memblock_region rather than the memory
> ranges.
>
> Introduce separate for_each_mem_region() and for_each_reserved_mem_region()
> to improve encapsulation of memblock internals from its users.
>
> Signed-off-by: Mike Rapoport <rppt at linux.ibm.com>
> ---
> arch/mips/netlogic/xlp/setup.c | 2 +-
Acked-by: Thomas Bogendoerfer <tsbogend at alpha.franken.de>
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
More information about the linux-riscv
mailing list