[PATCH v2] riscv: propagate insert_resource result from add_resource
Paul Walmsley
pjw at kernel.org
Wed May 13 15:58:55 PDT 2026
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 at linux.dev>
Thanks, queued for v7.2.
- Paul
More information about the linux-riscv
mailing list