Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1259321ybl; Fri, 23 Aug 2019 16:23:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA+C0YYwcPnT5wFbx1dNOc3pW7tdIReiL4Pdx+zqu6sVTOQIqVeu5ju1heioZ+A5NCkv2O X-Received: by 2002:a17:90a:8d85:: with SMTP id d5mr7451673pjo.137.1566602584123; Fri, 23 Aug 2019 16:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602584; cv=none; d=google.com; s=arc-20160816; b=wxmfFy0a924sECPEc6wl6yytSH6u7rE7yFdH+8XFywAu3ELyZAPWYf3DB5a4LPRMNU IQ/kw3uf1jSgJ4COGKmrUDVcy2qf8KwHCLs5fH83tsAdeoEjqET16m+oJ/cbsTum5LfS MpgmieC12rXWxGLHLjs3pYgSNxDBC0tpvCSg62k/Fd9uNrf2ReYEXuOQoen+5t8nUdYz jS4mSD7YreF3wZeEBgCwSaIfV3/P1ketF4C0wmlhoFqbqVjEYuOrcCJbunsF/mKak9fB TTZd1lYVWIFNn1OL6NBvU3YO0CysR/D6VBay9wtkqBKmImRWmH4VEnqUa7zT/2h3n7r1 wS5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=F9gDZDr40ZPhz0ZrhGAlc/v4VD2Dm7bM6vPLqunGpKQ=; b=px/aJz7RF9SowajGX2BPj9ImidyruiMRfWv1mqPL/QWJgBnyrqxm0DXZXISTyj+m5F ZFJ24/TpYvpmPxmjCiF/e4Q9MxM7qMgL99xFoh9eAHkf0Qx5xBcWybThcNDhXYuLjFyi OcMCSrHv7IeJN2u6xoVHQ24aApjdnsEB3QzEzEdN58jTZm8n5pxWBTMPr4ObdG6pGbqO OgebC0DeI/VOCb9TSw2B8kRLb2aKnH5TVuB+7izX1Fnp0WuIWktm1UgwBdu4Z1VpGx1S mBjrA33P2nYgqzgCd2q5OVgbdc6EUKisv2Orou9tfGM8HVALGPDTPpIdUPTCI6KalBNO CeyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si3621901ply.279.2019.08.23.16.22.48; Fri, 23 Aug 2019 16:23:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388323AbfHWNL4 (ORCPT + 99 others); Fri, 23 Aug 2019 09:11:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5644 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731783AbfHWNLz (ORCPT ); Fri, 23 Aug 2019 09:11:55 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 318783CD6D96C5C7B307; Fri, 23 Aug 2019 21:11:48 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 23 Aug 2019 21:11:37 +0800 From: YueHaibing To: , , , , , , , , , , , CC: , , Subject: [PATCH -next] ASoC: SOF: imx8: Make some functions static Date: Fri, 23 Aug 2019 20:59:39 +0800 Message-ID: <20190823125939.30012-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warnings: sound/soc/sof/imx/imx8.c:104:6: warning: symbol 'imx8_dsp_handle_reply' was not declared. Should it be static? sound/soc/sof/imx/imx8.c:115:6: warning: symbol 'imx8_dsp_handle_request' was not declared. Should it be static? sound/soc/sof/imx/imx8.c:336:5: warning: symbol 'imx8_get_bar_index' was not declared. Should it be static? sound/soc/sof/imx/imx8.c:341:6: warning: symbol 'imx8_ipc_msg_data' was not declared. Should it be static? sound/soc/sof/imx/imx8.c:348:5: warning: symbol 'imx8_ipc_pcm_params' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/sof/imx/imx8.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index e502f58..6404724 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -101,7 +101,7 @@ static int imx8_get_window_offset(struct snd_sof_dev *sdev, u32 id) return MBOX_OFFSET; } -void imx8_dsp_handle_reply(struct imx_dsp_ipc *ipc) +static void imx8_dsp_handle_reply(struct imx_dsp_ipc *ipc) { struct imx8_priv *priv = imx_dsp_get_data(ipc); unsigned long flags; @@ -112,7 +112,7 @@ void imx8_dsp_handle_reply(struct imx_dsp_ipc *ipc) spin_unlock_irqrestore(&priv->sdev->ipc_lock, flags); } -void imx8_dsp_handle_request(struct imx_dsp_ipc *ipc) +static void imx8_dsp_handle_request(struct imx_dsp_ipc *ipc) { struct imx8_priv *priv = imx_dsp_get_data(ipc); @@ -333,21 +333,21 @@ static int imx8_remove(struct snd_sof_dev *sdev) } /* on i.MX8 there is 1 to 1 match between type and BAR idx */ -int imx8_get_bar_index(struct snd_sof_dev *sdev, u32 type) +static int imx8_get_bar_index(struct snd_sof_dev *sdev, u32 type) { return type; } -void imx8_ipc_msg_data(struct snd_sof_dev *sdev, - struct snd_pcm_substream *substream, - void *p, size_t sz) +static void imx8_ipc_msg_data(struct snd_sof_dev *sdev, + struct snd_pcm_substream *substream, + void *p, size_t sz) { sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz); } -int imx8_ipc_pcm_params(struct snd_sof_dev *sdev, - struct snd_pcm_substream *substream, - const struct sof_ipc_pcm_params_reply *reply) +static int imx8_ipc_pcm_params(struct snd_sof_dev *sdev, + struct snd_pcm_substream *substream, + const struct sof_ipc_pcm_params_reply *reply) { return 0; } -- 2.7.4