All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static
@ 2023-03-09 14:09 Tom Rix
  2023-03-13 19:07 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Rix @ 2023-03-09 14:09 UTC (permalink / raw)
  To: kiseok.jo, lgirdwood, broonie, perex, tiwai
  Cc: alsa-devel, linux-kernel, Tom Rix

smatch reports
sound/soc/codecs/sma1303.c:1594:28:
  warning: symbol 'sma_i2c_regmap' was not declared. Should it be static?

sma_i2c_regmap is only used in sma1303, so it should be static

Signed-off-by: Tom Rix <trix@redhat.com>
---
 sound/soc/codecs/sma1303.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/sma1303.c b/sound/soc/codecs/sma1303.c
index fa4b0a60f8a9..b6c132edf3bd 100644
--- a/sound/soc/codecs/sma1303.c
+++ b/sound/soc/codecs/sma1303.c
@@ -1591,7 +1591,7 @@ static const struct snd_soc_component_driver sma1303_component = {
 	.num_dapm_routes = ARRAY_SIZE(sma1303_audio_map),
 };
 
-const struct regmap_config sma_i2c_regmap = {
+static const struct regmap_config sma_i2c_regmap = {
 	.reg_bits = 8,
 	.val_bits = 8,
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static
  2023-03-09 14:09 [PATCH] ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static Tom Rix
@ 2023-03-13 19:07 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-03-13 19:07 UTC (permalink / raw)
  To: kiseok.jo, lgirdwood, perex, tiwai, Tom Rix; +Cc: alsa-devel, linux-kernel

On Thu, 09 Mar 2023 09:09:59 -0500, Tom Rix wrote:
> smatch reports
> sound/soc/codecs/sma1303.c:1594:28:
>   warning: symbol 'sma_i2c_regmap' was not declared. Should it be static?
> 
> sma_i2c_regmap is only used in sma1303, so it should be static
> 
> 
> [...]

Applied to

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

Thanks!

[1/1] ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static
      commit: d7d103d1779c3d0bc4d55f2802930a6b067450c0

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-13 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-09 14:09 [PATCH] ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static Tom Rix
2023-03-13 19:07 ` Mark Brown

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.