Re: [PATCH v2] riscv: propagate insert_resource result from add_resource

From: Paul Walmsley

Date: Wed May 13 2026 - 18:59:25 EST


On Tue, 12 May 2026, Thorsten Blum wrote:

> Currently, add_resource() returns 1 on success, even though its callers
> only check for negative values. Instead, propagate the insert_resource()
> result from add_resource() to align with standard kernel return-value
> conventions (0 on success, negative errno on failure).
>
> Use %pR to print the full resource range while at it.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>

Thanks, queued for v7.2.


- Paul