Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1259621ybl; Fri, 23 Aug 2019 16:23:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWXE1WOk+eEHYYyPelIYFx84/IvV2KX/+1Ndj9Ei6/KMGNPXi1j2kODNJ3+fDseZz9H+Om X-Received: by 2002:a17:902:f096:: with SMTP id go22mr7678075plb.58.1566602609728; Fri, 23 Aug 2019 16:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602609; cv=none; d=google.com; s=arc-20160816; b=kcNGvyq3DBWE480/ZspFN+wlYgrI4Og3Mhw4z6mh1t3MygufffC8PGthn4RfpbF3pt Y4lvwJvIgCuc0Ona1gK0y6Vmae4igdISYCkyVNx6oSytvxa30iPho/M3zAwgc0Xt7jgB kOJB64NNT9BNfuQHQKc9KuRQD/v1zBDzeZK4VSwt9p4F3QeVet1VuypHydQc7KuH4Nln tv7EzlkDbMeF+6zBSIW1Zkssx48pwMypBdS5Fjf89l2oz1ia8fby2uLF4OdUIY6i4yuS LfEpOpYrWHVvuOmHMwK0wUCfTO1shBp3weZDmc21Tr0jQw1I2l1yx13W2Fm7fpSa8wSS wOgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LZPOX0INdRlOUvoefxV/HDc1vutqvPxYj4fWM1wy0rw=; b=sDSX02b6u6Ur4t37GVpPJIy4okhaSfPHnvtrs+mGuvsMZJYHmK2R37dU+9nhR4ZozZ RJktBUAyRpD7cI+ZzxSwu2WwDJdyskaB/kDP/UtxQMIxJKH2NpsFWj7rgDDNZjyMxPEJ ilnaxZ4JhHxvxjvreydaKAUjjuXB5lqvm7vnKQ1MQD43JAlPp9vpW4fyfn23LnhE/Lsu iGy6M5vrbnmR9ZheXvOSIKrRGz4YRLLaXVH+NIESZJMSL5Bql8ZyrF7jG7CATOe3woVJ FTcFI95JRq+h2focOom7jYfY06DiTvIPuBfp1c0i+SMQfNPluuj90otILg+uUZsenR0Y veRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mUnOqF6u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si3841403pld.250.2019.08.23.16.23.15; Fri, 23 Aug 2019 16:23:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mUnOqF6u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392114AbfHWNTc (ORCPT + 99 others); Fri, 23 Aug 2019 09:19:32 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38029 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731365AbfHWNTb (ORCPT ); Fri, 23 Aug 2019 09:19:31 -0400 Received: by mail-wr1-f68.google.com with SMTP id g17so8636163wrr.5 for ; Fri, 23 Aug 2019 06:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LZPOX0INdRlOUvoefxV/HDc1vutqvPxYj4fWM1wy0rw=; b=mUnOqF6uNCM6LcdyehIFjzjsqAEof9B3kEFEJZUVN62H3iSJhkiiVCYHQ96YMhS7pg WWQxX7Zi4CQ/Hh3F8NxgU/YpVIdxTlD8WDG2Qtaq/ydXMvpj3C8idH/Ml46oVakYSRxD 6W3Tj1DIeuKn/rRGwr3eC0wJZCyMqsBKqGFmTNSeBrrr23oJNlbCIcaHm6u6FFoocaC/ nmyGYShss+ThniPimc4+KAPMoD9enuctPgOIRGG+NrkXuYMVi7TBln7NIqhMZxoyR75g wPyvuX4jjMhc9QpsgJzCdI02ckNVcKlWZfPj2tL4KCFYZJviAwZuhb6IEUrGk3yGizqd /Z6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LZPOX0INdRlOUvoefxV/HDc1vutqvPxYj4fWM1wy0rw=; b=WUj5FFGtDlhqELbJNr0gNzoMhh5io4Ho1UjozFoz58Cy22Sf3+UEIz9tWlh2f+S4L0 G4xBuvGAhf8BdwGT5imj61WIoXndcpjaeXTv8wLzMSOEobYmuDi4j9PmWna4B5umEVEH eVXensCby5G4CLBAMZzbgA5lYBEv0rX9u4zRqSeTqFO+qnohPROJ37iMdbMwXjjfouuw pw17kj4VwZMc7Gm0cxFHEkT6Fadj0Ctutb8kouUV11HGJ1ME/paW/eDeius1mgykqX+2 btkwfB4bY8SAYivC/kPnFDhBJP9r75ZaPLS/A5D6XEYyg1Tq5j0oBGCb4kz+ncCfnLqA yWuA== X-Gm-Message-State: APjAAAX6Qqb/o5+rQga3gNSzBDN2CEXbhPSs+hFBc8Qfg4wznULfFuzj e9Id81Zi37MMQ8/9ErHS4tHpH+ZOliOlmCUI3VQ= X-Received: by 2002:a5d:5408:: with SMTP id g8mr5348355wrv.201.1566566369129; Fri, 23 Aug 2019 06:19:29 -0700 (PDT) MIME-Version: 1.0 References: <20190823125939.30012-1-yuehaibing@huawei.com> In-Reply-To: <20190823125939.30012-1-yuehaibing@huawei.com> From: Daniel Baluta Date: Fri, 23 Aug 2019 16:19:17 +0300 Message-ID: Subject: Re: [alsa-devel] [PATCH -next] ASoC: SOF: imx8: Make some functions static To: YueHaibing Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Daniel Baluta , Pierre-Louis Bossart , Linux-ALSA , Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 23, 2019 at 4:12 PM YueHaibing wrote: > > 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 Reviewed-by: Daniel Baluta > --- > 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 > > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > https://mailman.alsa-project.org/mailman/listinfo/alsa-devel