From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH] OMAP: McBSP: Fix static function warning Date: Wed, 08 Sep 2010 12:14:59 +0100 Message-ID: <1283944499.3097.98.camel@odin> References: <1283916223-23567-1-git-send-email-manjugk@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1283916223-23567-1-git-send-email-manjugk@ti.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: "G, Manjunath Kondaiah" Cc: Nishanth Menon , alsa-devel@alsa-project.org, Tony Lindgren , Mark Brown , Peter Ujfalusi , linux-omap@vger.kernel.org List-Id: linux-omap@vger.kernel.org On Wed, 2010-09-08 at 08:53 +0530, G, Manjunath Kondaiah wrote: > 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? > > Signed-off-by: G, Manjunath Kondaiah > Cc: alsa-devel@alsa-project.org > Cc: Jarkko Nikula > Cc: Peter Ujfalusi > Cc: Liam Girdwood > Cc: Mark Brown > Cc: Tony Lindgren > Cc: Nishanth Menon > > --- > sound/soc/omap/omap-mcbsp.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c > index 86f2139..5768381 100644 > --- a/sound/soc/omap/omap-mcbsp.c > +++ b/sound/soc/omap/omap-mcbsp.c > @@ -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 -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk