diff mbox series

[-next] ASoC: fsl_mqs: fix old-style function declaration

Message ID 20191011105606.19428-1-yuehaibing@huawei.com (mailing list archive)
State Not Applicable
Headers show
Series [-next] ASoC: fsl_mqs: fix old-style function declaration | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch next (600802af9049be799465b24d14162918545634bf)
snowpatch_ozlabs/apply_patch warning Failed to apply on branch merge (3c8b32b8f8168bbca34efe59739dfd33bf39ea57)
snowpatch_ozlabs/apply_patch warning Failed to apply on branch linus (9e208aa06c2109b45eec6be049a8e47034748c20)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Yue Haibing Oct. 11, 2019, 10:56 a.m. UTC
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 <yuehaibing@huawei.com>
---
 sound/soc/fsl/fsl_mqs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Schwab Oct. 11, 2019, 1:12 p.m. UTC | #1
On Okt 11 2019, YueHaibing <yuehaibing@huawei.com> 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.
Yue Haibing Oct. 11, 2019, 2:02 p.m. UTC | #2
On 2019/10/11 21:12, Andreas Schwab wrote:
> On Okt 11 2019, YueHaibing <yuehaibing@huawei.com> 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.
>
diff mbox series

Patch

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,
 };