linux-yocto/arch/microblaze
Mike Rapoport 6f83661220 microblaze: don't treat zero reserved memory regions as error
[ Upstream commit 0075df288d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:10:38 +02:00
..
boot
configs
include uaccess: fix nios2 and microblaze get_user_8() 2022-04-08 14:23:18 +02:00
kernel microblaze: Remove early printk call from cpuinfo-static.c 2024-06-16 13:39:38 +02:00
lib microblaze: use generic strncpy/strnlen from_user 2021-07-27 23:01:13 +02:00
mm microblaze: don't treat zero reserved memory regions as error 2024-10-17 15:10:38 +02:00
pci
Kbuild microblaze: move core-y in arch/microblaze/Makefile to arch/microblaze/Kbuild 2021-08-25 09:56:10 +02:00
Kconfig tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Kconfig.platform
Makefile microblaze: move core-y in arch/microblaze/Makefile to arch/microblaze/Kbuild 2021-08-25 09:56:10 +02:00