* [PATCH] clk: Correct the data types of the variables in clk_calc_new_rates
@ 2025-02-07 9:36 ` Chuan Liu via B4 Relay
0 siblings, 0 replies; 3+ messages in thread
From: Chuan Liu @ 2025-02-07 9:36 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, Chuan Liu
In clk_calc_new_rates, the "ret" is only used to store the return value
of clk_core_determine_round_nolock, and the data type of the return
value of clk_core_determine_round_nolock is int.
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
---
drivers/clk/clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 9b45fa005030..e153d1901a60 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2283,7 +2283,7 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *core,
unsigned long min_rate;
unsigned long max_rate;
int p_index = 0;
- long ret;
+ int ret;
/* sanity */
if (IS_ERR_OR_NULL(core))
---
base-commit: 1e1fd26ed4ca05cc1f0e5857918da4dd54967f7d
change-id: 20250207-correct_data_types-fadaeaa46b07
Best regards,
--
Chuan Liu <chuan.liu@amlogic.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] clk: Correct the data types of the variables in clk_calc_new_rates
@ 2025-02-07 9:36 ` Chuan Liu via B4 Relay
0 siblings, 0 replies; 3+ messages in thread
From: Chuan Liu via B4 Relay @ 2025-02-07 9:36 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, Chuan Liu
From: Chuan Liu <chuan.liu@amlogic.com>
In clk_calc_new_rates, the "ret" is only used to store the return value
of clk_core_determine_round_nolock, and the data type of the return
value of clk_core_determine_round_nolock is int.
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
---
drivers/clk/clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 9b45fa005030..e153d1901a60 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2283,7 +2283,7 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *core,
unsigned long min_rate;
unsigned long max_rate;
int p_index = 0;
- long ret;
+ int ret;
/* sanity */
if (IS_ERR_OR_NULL(core))
---
base-commit: 1e1fd26ed4ca05cc1f0e5857918da4dd54967f7d
change-id: 20250207-correct_data_types-fadaeaa46b07
Best regards,
--
Chuan Liu <chuan.liu@amlogic.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: Correct the data types of the variables in clk_calc_new_rates
2025-02-07 9:36 ` Chuan Liu via B4 Relay
(?)
@ 2025-03-04 20:59 ` Stephen Boyd
-1 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2025-03-04 20:59 UTC (permalink / raw)
To: Chuan Liu via B4 Relay, Michael Turquette, chuan.liu
Cc: linux-clk, linux-kernel, Chuan Liu
Quoting Chuan Liu via B4 Relay (2025-02-07 01:36:10)
> From: Chuan Liu <chuan.liu@amlogic.com>
>
> In clk_calc_new_rates, the "ret" is only used to store the return value
> of clk_core_determine_round_nolock, and the data type of the return
> value of clk_core_determine_round_nolock is int.
>
> Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-04 20:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 9:36 [PATCH] clk: Correct the data types of the variables in clk_calc_new_rates Chuan Liu
2025-02-07 9:36 ` Chuan Liu via B4 Relay
2025-03-04 20:59 ` Stephen Boyd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.