Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78260513 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm/memblock: Add for_each_memblock_rev"

parents 84f890d5 225b87be
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -231,6 +231,12 @@ static inline unsigned long memblock_region_reserved_end_pfn(const struct memblo
	     region < (memblock.memblock_type.regions + memblock.memblock_type.cnt);	\
	     region++)

#define for_each_memblock_rev(memblock_type, region)	\
	for (region = memblock.memblock_type.regions + \
			memblock.memblock_type.cnt - 1;	\
	     region >= memblock.memblock_type.regions;	\
	     region--)


#ifdef CONFIG_ARCH_DISCARD_MEMBLOCK
#define __init_memblock __meminit