Re: [PATCH] of: fdt: add size 0 check after page align

From: Rob Herring
Date: Mon Mar 04 2024 - 08:27:18 EST


On Sat, Mar 2, 2024 at 8:03 AM <skseofh@xxxxxxxxx> wrote:
>
> From: Daero Lee <skseofh@xxxxxxxxx>
>
> After page aligning, the size may become zero. So I added exception
> handling code for size 0.

That may be true, but when would anyone only have memory regions of
less than 2 pages. In any case memblock_add will just do nothing. What
is the actual problem you are having?

Rob