Merge tag 'powerpc-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux-2.6-microblaze.git] / arch / powerpc / mm / kasan / kasan_init_32.c
index 59f61ef..cf8770b 100644 (file)
@@ -137,12 +137,12 @@ void __init kasan_mmu_init(void)
 
 void __init kasan_init(void)
 {
-       struct memblock_region *reg;
+       phys_addr_t base, end;
+       u64 i;
        int ret;
 
-       for_each_memblock(memory, reg) {
-               phys_addr_t base = reg->base;
-               phys_addr_t top = min(base + reg->size, total_lowmem);
+       for_each_mem_range(i, &base, &end) {
+               phys_addr_t top = min(end, total_lowmem);
 
                if (base >= top)
                        continue;