Re: [PATCH -next] ASoc: rt1015: make symbol rt1015_aif_dai_ops and rt1015_dai static
From: Mark Brown
Date: Tue Feb 04 2020 - 06:00:46 EST
On Mon, Feb 03, 2020 at 10:18:41AM +0800, Hongbo Yao wrote:
> Fix sparse warning:
> sound/soc/codecs/rt1015.c: warning: symbol 'rt1015_aif_dai_ops'
> was not declared. Should it be static?
> sound/soc/codecs/rt1015.c: warning: symbol 'rt1015_dai' was not
> declared. Should it be static?
This introduces other warnings so clearly isn't the best fix:
CC sound/soc/codecs/rt1015.o
sound/soc/codecs/rt1015.c:844:31: warning: ârt1015_aif_dai_opsâ defined but not used [-Wunused-variable]
static struct snd_soc_dai_ops rt1015_aif_dai_ops = {
^~~~~~~~~~~~~~~~~~
Attachment:
signature.asc
Description: PGP signature