Skip to contentSkip to conversation

ASoC: Intel: Skylake: make function skl_clk_round_rate static

PATCH In review Colin King 4 participants 4 messages Feb 8, 2018 – Feb 12, 2018

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 ASoC: Intel: Skylake: make function skl_clk_round_rate static

From: Colin Ian King <[email protected]>

The function skl_clk_round_rate is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
sound/soc/intel/skylake/skl-ssp-clk.c:250:6: warning: symbol 'skl_clk_round_rate' was not declared. Should it be static?

---
 sound/soc/intel/skylake/skl-ssp-clk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-ssp-clk.c +2 -2
index 7fbddf5e3b00..cda1b5fa7436 100644
@@ -247,8 +247,8 @@ static unsigned long skl_clk_recalc_rate(struct clk_hw *hw,
 }
 
 /* Not supported by clk driver. Implemented to satisfy clk fw */
-long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
-				unsigned long *parent_rate)
+static long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
+			       unsigned long *parent_rate)
 {
 	return rate;
 }
Signature · 1 line
2.15.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 5 lines · Colin King

From: Colin Ian King <[email protected]>

The function skl_clk_round_rate is local to the source and does not need to be in global scope, so make it static.

Quoted 8 lines

Cleans up sparse warning:
sound/soc/intel/skylake/skl-ssp-clk.c:250:6: warning: symbol 'skl_clk_round_rate' was not declared. Should it be static?

---
  sound/soc/intel/skylake/skl-ssp-clk.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 5 lines
sound/soc/intel/skylake/skl-ssp-clk.c +0 -0
index 7fbddf5e3b00..cda1b5fa7436 100644

sound/soc/intel/skylake/skl-ssp-clk.c static unsigned long skl_clk_recalc_rate(struct clk_hw *hw, · line 254

Quoted 10 lines
sound/soc/intel/skylake/skl-ssp-clk.c +2 -2
@@ -247,8 +247,8 @@ static unsigned long skl_clk_recalc_rate(struct clk_hw *hw,
  }
 
  /* Not supported by clk driver. Implemented to satisfy clk fw */
-long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
-				unsigned long *parent_rate)
+static long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
+			       unsigned long *parent_rate)
  {
  	return rate;
  }

Thanks

Takashi Sakamoto

Acked-by on v1 1/1
#2 lore raw
In reply to Colin King
Quoted 8 lines · Colin King

From: Colin Ian King <[email protected]>

The function skl_clk_round_rate is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
sound/soc/intel/skylake/skl-ssp-clk.c:250:6: warning: symbol 'skl_clk_round_rate' was not declared. Should it be static?

Signature · 1 line
~Vinod
maintainer
#3 lore raw

Applied "ASoC: Intel: Skylake: make function skl_clk_round_rate static" to the asoc tree

In reply to Colin King

The patch

ASoC: Intel: Skylake: make function skl_clk_round_rate static

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 29c5b8fd8c07a42b07383c5fac47173d882f74b2 Mon Sep 17 00:00:00 2001

From: Colin Ian King <[email protected]>
Date: Thu, 8 Feb 2018 14:35:30 +0000
Subject: [PATCH] ASoC: Intel: Skylake: make function skl_clk_round_rate static

The function skl_clk_round_rate is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
sound/soc/intel/skylake/skl-ssp-clk.c:250:6: warning: symbol 'skl_clk_round_rate' was not declared. Should it be static?

---
 sound/soc/intel/skylake/skl-ssp-clk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-ssp-clk.c +2 -2
index 7fbddf5e3b00..cda1b5fa7436 100644
@@ -247,8 +247,8 @@ static unsigned long skl_clk_recalc_rate(struct clk_hw *hw,
 }
 
 /* Not supported by clk driver. Implemented to satisfy clk fw */
-long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
-				unsigned long *parent_rate)
+static long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate,
+			       unsigned long *parent_rate)
 {
 	return rate;
 }
Signature · 1 line
2.16.1