Re: [PATCH 1/2] clk: tegra: periph: Fix error handling and resolve unsigned compare warning

From: Stephen Boyd
Date: Thu Jul 24 2025 - 18:31:38 EST


Quoting Pei Xiao (2025-07-09 00:37:13)
> ./drivers/clk/tegra/clk-periph.c:59:5-9: WARNING:
> Unsigned expression compared with zero: rate < 0
>
> The unsigned long 'rate' variable caused:
> - Incorrect handling of negative errors
> - Compile warning: "Unsigned expression compared with zero"
>
> Fix by changing to long type and adding req->rate cast.
>
> Signed-off-by: Pei Xiao <xiaopei01@xxxxxxxxxx>
> ---

Applied to clk-next