alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: mediatek: mt8186: set variable aud_pinctrl to static
@ 2023-04-07 11:55 Tom Rix
  2023-04-07 18:27 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Rix @ 2023-04-07 11:55 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, matthias.bgg,
	angelogioacchino.delregno, colin.i.king, fshao, jiaxin.yu,
	allen-kh.cheng
  Cc: alsa-devel, linux-kernel, linux-arm-kernel, linux-mediatek, Tom Rix

smatch reports
sound/soc/mediatek/mt8186/mt8186-afe-gpio.c:14:16: warning: symbol
  'aud_pinctrl' was not declared. Should it be static?

This variable is only used in one file so should be static.

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

diff --git a/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c b/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
index 20b9f5d810ec..f12e91cc4fcf 100644
--- a/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
+++ b/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c
@@ -11,7 +11,7 @@
 #include "mt8186-afe-common.h"
 #include "mt8186-afe-gpio.h"
 
-struct pinctrl *aud_pinctrl;
+static struct pinctrl *aud_pinctrl;
 
 enum mt8186_afe_gpio {
 	MT8186_AFE_GPIO_CLK_MOSI_OFF,
-- 
2.27.0


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

* Re: [PATCH] ASoC: mediatek: mt8186: set variable aud_pinctrl to static
  2023-04-07 11:55 [PATCH] ASoC: mediatek: mt8186: set variable aud_pinctrl to static Tom Rix
@ 2023-04-07 18:27 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-04-07 18:27 UTC (permalink / raw)
  To: lgirdwood, perex, tiwai, matthias.bgg, angelogioacchino.delregno,
	colin.i.king, fshao, jiaxin.yu, allen-kh.cheng, Tom Rix
  Cc: alsa-devel, linux-kernel, linux-arm-kernel, linux-mediatek

On Fri, 07 Apr 2023 07:55:53 -0400, Tom Rix wrote:
> smatch reports
> sound/soc/mediatek/mt8186/mt8186-afe-gpio.c:14:16: warning: symbol
>   'aud_pinctrl' was not declared. Should it be static?
> 
> This variable is only used in one file so should be static.
> 
> 
> [...]

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: mediatek: mt8186: set variable aud_pinctrl to static
      commit: 672029caa5708934817a331f3323bbe48d456c5c

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-04-07 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 11:55 [PATCH] ASoC: mediatek: mt8186: set variable aud_pinctrl to static Tom Rix
2023-04-07 18:27 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).