Re: [PATCH -next] ASoC: fsl_mqs: fix old-style function declaration
On 2019/10/11 21:12, Andreas Schwab wrote: > On Okt 11 2019, YueHaibing wrote: > >> gcc warn about this: >> >> sound/soc/fsl/fsl_mqs.c:146:1: warning: >> static is not at beginning of declaration [-Wold-style-declaration] > > It's not a function, though. Oh..., will fix this, thanks! > > Andreas. >
Re: [PATCH -next] ASoC: fsl_mqs: fix old-style function declaration
On Okt 11 2019, YueHaibing wrote: > gcc warn about this: > > sound/soc/fsl/fsl_mqs.c:146:1: warning: > static is not at beginning of declaration [-Wold-style-declaration] It's not a function, though. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
[PATCH -next] ASoC: fsl_mqs: fix old-style function declaration
gcc warn about this: sound/soc/fsl/fsl_mqs.c:146:1: warning: static is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: YueHaibing --- sound/soc/fsl/fsl_mqs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c index f7fc44e..0c813a4 100644 --- a/sound/soc/fsl/fsl_mqs.c +++ b/sound/soc/fsl/fsl_mqs.c @@ -143,7 +143,7 @@ static void fsl_mqs_shutdown(struct snd_pcm_substream *substream, MQS_EN_MASK, 0); } -const static struct snd_soc_component_driver soc_codec_fsl_mqs = { +static const struct snd_soc_component_driver soc_codec_fsl_mqs = { .idle_bias_on = 1, .non_legacy_dai_naming = 1, }; -- 2.7.4