Skip to contentSkip to conversation

clk: qcom: gcc-sm6375: Ensure unsigned long type

PATCH In review Stephen Boyd 2 participants 2 messages Oct 4, 2022

Subsystems (3)
lore
Share & tools
lore

Stephen Boyd

author maintainer
#0 lore raw

PATCH 1/1 clk: qcom: gcc-sm6375: Ensure unsigned long type

This PLL frequency needs a UL postfix to avoid compiler warnings on 32-bit architectures.

Fixes 184fdd873d83 ("clk: qcom: Add global clock controller driver for SM6375")
Cc Konrad Dybcio <[email protected]>
---
 drivers/clk/qcom/gcc-sm6375.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/gcc-sm6375.c +1 -1
index a3188c462a8b..89a1cc90b145 100644
@@ -54,7 +54,7 @@ static struct pll_vco lucid_vco[] = {
 };
 
 static struct pll_vco zonda_vco[] = {
-	{ 595200000, 3600000000, 0 },
+	{ 595200000, 3600000000UL, 0 },
 };
 
 static struct clk_alpha_pll gpll0 = {

base-commit: c3db5128e80e1437cb08d0d41aeb7163004897e7
prerequisite-patch-id: eac168caa320346ed78dc95c27117106fc8dbc7f

Signature · 2 lines
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Stephen Boyd

This PLL frequency needs a UL postfix to avoid compiler warnings on 32-bit architectures.

Fixes 184fdd873d83 ("clk: qcom: Add global clock controller driver for SM6375")
Cc Konrad Dybcio <[email protected]>

---

Not sure if this SoC can even boot 32bit kernels, however I like it for

the sake of correctness.

Konrad

Quoted 19 lines
  drivers/clk/qcom/gcc-sm6375.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/gcc-sm6375.c +1 -1
index a3188c462a8b..89a1cc90b145 100644
@@ -54,7 +54,7 @@ static struct pll_vco lucid_vco[] = {
  };
 
  static struct pll_vco zonda_vco[] = {
-	{ 595200000, 3600000000, 0 },
+	{ 595200000, 3600000000UL, 0 },
  };
 
  static struct clk_alpha_pll gpll0 = {

base-commit: c3db5128e80e1437cb08d0d41aeb7163004897e7
prerequisite-patch-id: eac168caa320346ed78dc95c27117106fc8dbc7f