Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp441051pxb; Thu, 5 Nov 2020 04:20:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRqqOkovZdMwXv5OilBmulEc+EPvFCi47PV0ZuX7GbHjLkYM6z+W8S5MC1vH9bLMavqUUH X-Received: by 2002:a17:906:a149:: with SMTP id bu9mr1935531ejb.115.1604578842917; Thu, 05 Nov 2020 04:20:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604578842; cv=none; d=google.com; s=arc-20160816; b=P/+TjDXiqr6+gP7nmT4fEXiUBddYIdGdo9Np/mPiryCoEkxKsRfdR9ENUZYGAubZ2b 0lKMKxY3k8xMgIvPmIMjw2PzmNSUKWNjEd4gXsb7fuc0pY9ky2FzWz10BGLVYkztm7KJ CK53SSGEeoB2zO2mQbqPenAhe5Fm/xGD2T44qPm6JKUHMtUupNyrH8aUONE5jIX9PAQ5 FnVgyxnWEZwT1ukGK9fVFw+oXHqzvVHlIPmrMTPERTuCxFMdfn8xlHG3X2By1DqRkt4R 0Y9El0IZAC4iC4taVer5zwTlhgfOClAGZryOaV4kYnEfbngEjKEMIa8J3fmy6xufafwp 3cxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=BC50VrG0iQjAQia9jqkNXIq9EYJdQuy/iz1pMk21TA8=; b=bFVncZZGl+Enkp6RoLMcMuFejzEuD9zxIgtzbZcptQmDmXqOCPt6CBhPfCu6i2wSp8 3xmaB2oZQdxm0R0GGvtQQ328HJ9UY2GX2KxUFycoGNhiJ4aTFq5BSRzZnkBO2MWk9jOv hRg/wWjlF/id4Hc2q+/rkJ/4j4a0pKdey1sq7dOOQvLLgHe/DAhwGn4hjn+2oXq4bBCM uOWGyneCr4arOOhcc5A+O6avcluzEz4ET0NtwHLRNLAWA1zslpDwR8VIxFs/5wK6FVL9 +FfkQJqEoWE16HAWCkJ+tdCohb35N44aVdFUrloa43EnBr7I/92rYp6pfmLSvDulWCSX UCtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb9si881818ejb.342.2020.11.05.04.20.19; Thu, 05 Nov 2020 04:20:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730266AbgKEMQ3 (ORCPT + 99 others); Thu, 5 Nov 2020 07:16:29 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6746 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKEMQ2 (ORCPT ); Thu, 5 Nov 2020 07:16:28 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CRjDL542NzkfFR; Thu, 5 Nov 2020 20:16:18 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Thu, 5 Nov 2020 20:16:13 +0800 From: Zou Wei To: , , , , CC: , , , , , Zou Wei Subject: [PATCH -next v2] ASoC: mediatek: mt8192: Make some symbols static Date: Thu, 5 Nov 2020 20:28:07 +0800 Message-ID: <1604579287-25251-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warnings: ./mt8192-dai-i2s.c:2040:5: warning: symbol 'mt8192_dai_i2s_get_share' was not declared. Should it be static? ./mt8192-dai-i2s.c:2060:5: warning: symbol 'mt8192_dai_i2s_set_priv' was not declared. Should it be static? ./mt8192-afe-gpio.c:15:16: warning: symbol 'aud_pinctrl' was not declared. Should it be static? ./mt8192-afe-pcm.c:70:5: warning: symbol 'mt8192_get_memif_pbuf_size' was not declared. Should it be static? ./mt8192-afe-pcm.c:2137:39: warning: symbol 'mt8192_afe_component' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zou Wei --- sound/soc/mediatek/mt8192/mt8192-afe-gpio.c | 2 +- sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 4 ++-- sound/soc/mediatek/mt8192/mt8192-dai-i2s.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c b/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c index ea00088..4208820 100644 --- a/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c +++ b/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c @@ -12,7 +12,7 @@ #include "mt8192-afe-common.h" #include "mt8192-afe-gpio.h" -struct pinctrl *aud_pinctrl; +static struct pinctrl *aud_pinctrl; enum mt8192_afe_gpio { MT8192_AFE_GPIO_DAT_MISO_OFF, diff --git a/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c b/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c index 4a4729f..e7fec2d 100644 --- a/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c +++ b/sound/soc/mediatek/mt8192/mt8192-afe-pcm.c @@ -67,7 +67,7 @@ static int mt8192_irq_fs(struct snd_pcm_substream *substream, unsigned int rate) return mt8192_general_rate_transform(afe->dev, rate); } -int mt8192_get_memif_pbuf_size(struct snd_pcm_substream *substream) +static int mt8192_get_memif_pbuf_size(struct snd_pcm_substream *substream) { struct snd_pcm_runtime *runtime = substream->runtime; @@ -2134,7 +2134,7 @@ static int mt8192_afe_component_probe(struct snd_soc_component *component) return mtk_afe_add_sub_dai_control(component); } -const struct snd_soc_component_driver mt8192_afe_component = { +static const struct snd_soc_component_driver mt8192_afe_component = { .name = AFE_PCM_NAME, .probe = mt8192_afe_component_probe, .pointer = mtk_afe_pcm_pointer, diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-i2s.c b/sound/soc/mediatek/mt8192/mt8192-dai-i2s.c index 53c560e..5b29340 100644 --- a/sound/soc/mediatek/mt8192/mt8192-dai-i2s.c +++ b/sound/soc/mediatek/mt8192/mt8192-dai-i2s.c @@ -2037,7 +2037,7 @@ static const struct mtk_afe_i2s_priv mt8192_i2s_priv[DAI_I2S_NUM] = { }, }; -int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe) +static int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe) { struct mt8192_afe_private *afe_priv = afe->platform_priv; const struct device_node *of_node = afe->dev->of_node; @@ -2057,7 +2057,7 @@ int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe) return 0; } -int mt8192_dai_i2s_set_priv(struct mtk_base_afe *afe) +static int mt8192_dai_i2s_set_priv(struct mtk_base_afe *afe) { int i; int ret; -- 2.6.2