linux/arch/microblaze/mm
Mike Rapoport 0075df288d microblaze: don't treat zero reserved memory regions as error
Before commit 721f4a6526 ("mm/memblock: remove empty dummy entry") the
check for non-zero of memblock.reserved.cnt in mmu_init() would always
be true either because  memblock.reserved.cnt is initialized to 1 or
because there were memory reservations earlier.

The removal of dummy empty entry in memblock caused this check to fail
because now memblock.reserved.cnt is initialized to 0.

Remove the check for non-zero of memblock.reserved.cnt because it's
perfectly fine to have an empty memblock.reserved array that early in
boot.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mike Rapoport <rppt@kernel.org>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240729053327.4091459-1-rppt@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2024-08-25 15:26:30 -07:00
..
consistent.c microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
fault.c mm: always expand the stack with the mmap write lock held 2023-06-27 09:41:30 -07:00
init.c microblaze: don't treat zero reserved memory regions as error 2024-08-25 15:26:30 -07:00
Makefile Microblaze patches for 5.11-rc1 2020-12-16 12:04:39 -08:00
mmu_context.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pgtable.c microblaze: use is_kernel_text() helper 2021-11-09 10:02:51 -08:00