Skip to contentSkip to conversation

clk: imx: set imx_clk_gpr_mux_ops storage-class-specifier to static

PATCH Applied Tom Rix 3 participants 3 messages Feb 5, 2023 – Feb 13, 2023

Subsystems (3)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 clk: imx: set imx_clk_gpr_mux_ops storage-class-specifier to static

smatch reports
drivers/clk/imx/clk-gpr-mux.c:73:22: warning: symbol 'imx_clk_gpr_mux_ops' was not declared. Should it be static?

imx_clk_gpr_mux_ops is only used in clk-gpr-mux.c, so it should be static.

---
 drivers/clk/imx/clk-gpr-mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/imx/clk-gpr-mux.c +1 -1
index 47a3e3cdcc82..c8d6090f15d6 100644
@@ -70,7 +70,7 @@ static int imx_clk_gpr_mux_determine_rate(struct clk_hw *hw,
 	return clk_mux_determine_rate_flags(hw, req, 0);
 }
 
-const struct clk_ops imx_clk_gpr_mux_ops = {
+static const struct clk_ops imx_clk_gpr_mux_ops = {
 	.get_parent = imx_clk_gpr_mux_get_parent,
 	.set_parent = imx_clk_gpr_mux_set_parent,
 	.determine_rate = imx_clk_gpr_mux_determine_rate,
Signature · 1 line
2.26.3
maintainer Applied
#1 lore raw

Quoting Tom Rix (2023-02-04 19:01:38)

Quoted 7 lines

smatch reports
drivers/clk/imx/clk-gpr-mux.c:73:22: warning: symbol 'imx_clk_gpr_mux_ops' was not declared. Should it be static?

imx_clk_gpr_mux_ops is only used in clk-gpr-mux.c, so it should be static.

---

Applied to clk-next

Reviewed-by on v1 1/1
#2 lore raw
In reply to Tom Rix
Quoted 6 lines · Tom Rix

smatch reports
drivers/clk/imx/clk-gpr-mux.c:73:22: warning: symbol 'imx_clk_gpr_mux_ops' was not declared. Should it be static?

imx_clk_gpr_mux_ops is only used in clk-gpr-mux.c, so it should be static.

Quoted 17 lines
---
  drivers/clk/imx/clk-gpr-mux.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/imx/clk-gpr-mux.c +1 -1
index 47a3e3cdcc82..c8d6090f15d6 100644
@@ -70,7 +70,7 @@ static int imx_clk_gpr_mux_determine_rate(struct clk_hw *hw,
  	return clk_mux_determine_rate_flags(hw, req, 0);
  }
 
-const struct clk_ops imx_clk_gpr_mux_ops = {
+static const struct clk_ops imx_clk_gpr_mux_ops = {
  	.get_parent = imx_clk_gpr_mux_get_parent,
  	.set_parent = imx_clk_gpr_mux_set_parent,
  	.determine_rate = imx_clk_gpr_mux_determine_rate,