From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757457AbcGKBbc (ORCPT ); Sun, 10 Jul 2016 21:31:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36742 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752003AbcGKBba (ORCPT ); Sun, 10 Jul 2016 21:31:30 -0400 Message-ID: <1468200685.32731.1.camel@mtksdaap41> Subject: Re: [alsa-devel] [PATCH -next v2] ASoC: mediatek: mt2701: fix non static symbol warning From: Garlic Tseng To: CC: Liam Girdwood , Mark Brown , Jaroslav Kysela , Matthias Brugger , Wei Yongjun , , , , Date: Mon, 11 Jul 2016 09:31:25 +0800 In-Reply-To: <1467985621-13755-1-git-send-email-weiyj_lk@163.com> References: <1467985293-9041-1-git-send-email-weiyj_lk@163.com> <1467985621-13755-1-git-send-email-weiyj_lk@163.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-07-08 at 13:47 +0000, weiyj_lk@163.com wrote: > From: Wei Yongjun > > Fixes the following sparse warning: > > sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:72:5: warning: > symbol 'mt2701_dai_num_to_i2s' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun Acked-by: Garlic Tseng > --- > sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c > index 15522c0..34a6123 100644 > --- a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c > +++ b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c > @@ -69,7 +69,7 @@ static const struct mt2701_afe_rate mt2701_afe_i2s_rates[] = { > { .rate = 352800, .regvalue = 24 }, > }; > > -int mt2701_dai_num_to_i2s(struct mtk_base_afe *afe, int num) > +static int mt2701_dai_num_to_i2s(struct mtk_base_afe *afe, int num) > { > int val = num - MT2701_IO_I2S; > > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel