[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <85d44c6a-896d-43f4-973a-8b275eb52769@huawei.com>
Date: Thu, 21 Mar 2019 09:45:42 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <broonie@...nel.org>, <perex@...ex.cz>, <tiwai@...e.com>,
<ckeepax@...nsource.cirrus.com>, <rf@...nsource.cirrus.com>
CC: <linux-kernel@...r.kernel.org>, <alsa-devel@...a-project.org>,
<patches@...nsource.cirrus.com>
Subject: Re: [PATCH -next] ASoC: wm_adsp: Make some variables static
Pls ignore this, sorry.
On 2019/3/21 9:43, Yue Haibing wrote:
> From: YueHaibing <yuehaibing@...wei.com>
>
> Fix sparse warnings:
>
> sound/soc/codecs/wm_adsp.c:309:20: warning: symbol 'wm_adsp1_ops' was not declared. Should it be static?
> sound/soc/codecs/wm_adsp.c:310:20: warning: symbol 'wm_adsp2_ops' was not declared. Should it be static?
> sound/soc/codecs/wm_adsp.c:311:20: warning: symbol 'wm_halo_ops' was not declared. Should it be static?
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
> sound/soc/codecs/wm_adsp.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
> index 644aaf1..4ed587f 100644
> --- a/sound/soc/codecs/wm_adsp.c
> +++ b/sound/soc/codecs/wm_adsp.c
> @@ -306,9 +306,9 @@
> #define HALO_MPU_VIO_ERR_SRC_MASK 0x00007fff
> #define HALO_MPU_VIO_ERR_SRC_SHIFT 0
>
> -struct wm_adsp_ops wm_adsp1_ops;
> -struct wm_adsp_ops wm_adsp2_ops[];
> -struct wm_adsp_ops wm_halo_ops;
> +static struct wm_adsp_ops wm_adsp1_ops;
> +static struct wm_adsp_ops wm_adsp2_ops[];
> +static struct wm_adsp_ops wm_halo_ops;
>
> struct wm_adsp_buf {
> struct list_head list;
>
Powered by blists - more mailing lists