Skip to contentSkip to conversation

OMAP: McBSP: Fix static function warning

PATCH Applied G, Manjunath Kondaiah 5 participants 5 messages Sep 8, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP: McBSP: Fix static function warning

This patch fixes sparse warning due non declaration of static function

sound/soc/omap/omap-mcbsp.c:783:5: warning: symbol 'omap_mcbsp_st_info_volsw' was not declared. Should it be static?

Cc Jarkko Nikula <[email protected]>
Cc Peter Ujfalusi <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Nishanth Menon <[email protected]>
---
 sound/soc/omap/omap-mcbsp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/omap/omap-mcbsp.c +1 -1
index 86f2139..5768381 100644
@@ -780,7 +780,7 @@ struct snd_soc_dai omap_mcbsp_dai[] = {
 
 EXPORT_SYMBOL_GPL(omap_mcbsp_dai);
 
-int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol,
+static int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol,
 			struct snd_ctl_elem_info *uinfo)
 {
 	struct soc_mixer_control *mc =
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Manjunath Kondaiah

This patch fixes sparse warning due non declaration of static function

sound/soc/omap/omap-mcbsp.c:783:5: warning: symbol 'omap_mcbsp_st_info_volsw' was not declared. Should it be static?

Quoted 8 lines
Cc Jarkko Nikula <[email protected]>
Cc Peter Ujfalusi <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Nishanth Menon <[email protected]>

The patch name could be ASoC: omap-mcbsp: ...

Other than that:

Acked-by
#2 lore raw
Quoted 15 lines · On Wed, 8 Sep 2010 09:03:09 +0300 Peter Ujfalusi <[email protected]>…
Quoted 5 lines · Manjunath Kondaiah

This patch fixes sparse warning due non declaration of static function

sound/soc/omap/omap-mcbsp.c:783:5: warning: symbol 'omap_mcbsp_st_info_volsw' was not declared. Should it be static?

Quoted 8 lines
Cc Jarkko Nikula <[email protected]>
Cc Peter Ujfalusi <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Nishanth Menon <[email protected]>
Quoted 5 lines

The patch name could be ASoC: omap-mcbsp: ...

Other than that:

Yep, name should start with ASoC.

#4 lore raw
In reply to G, Manjunath Kondaiah
Quoted 22 lines · Manjunath Kondaiah

This patch fixes sparse warning due non declaration of static function

sound/soc/omap/omap-mcbsp.c:783:5: warning: symbol 'omap_mcbsp_st_info_volsw' was not declared. Should it be static?

Cc Jarkko Nikula <[email protected]>
Cc Peter Ujfalusi <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Nishanth Menon <[email protected]>
---
 sound/soc/omap/omap-mcbsp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/omap/omap-mcbsp.c +0 -0
index 86f2139..5768381 100644

sound/soc/omap/omap-mcbsp.c struct snd_soc_dai omap_mcbsp_dai[] = { · line 786

Quoted 8 lines
sound/soc/omap/omap-mcbsp.c +1 -1
@@ -780,7 +780,7 @@ struct snd_soc_dai omap_mcbsp_dai[] = {
 
 EXPORT_SYMBOL_GPL(omap_mcbsp_dai);
 
-int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol,
+static int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol,
 			struct snd_ctl_elem_info *uinfo)
 {
 	struct soc_mixer_control *mc =

Applied.
Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk