[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bb24d3b0-aa8f-3649-1837-3b8f43ef7e0f@canonical.com>
Date: Mon, 27 Sep 2021 11:56:48 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
To: Arnd Bergmann <arnd@...nel.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: samsung: add missing "fallthrough;"
On 27/09/2021 11:54, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> With gcc, we get a warning in this file:
>
> In file included from include/linux/io.h:13,
> from sound/soc/samsung/s3c-i2s-v2.c:16:
> sound/soc/samsung/s3c-i2s-v2.c: In function 's3c2412_i2s_trigger':
> arch/arm/include/asm/io.h:92:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
> #define __raw_writel __raw_writel
> ^
> arch/arm/include/asm/io.h:299:29: note: in expansion of macro '__raw_writel'
> #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c)
> ^~~~~~~~~~~~
> arch/arm/include/asm/io.h:307:36: note: in expansion of macro 'writel_relaxed'
> #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); })
> ^~~~~~~~~~~~~~
> sound/soc/samsung/s3c-i2s-v2.c:398:3: note: in expansion of macro 'writel'
> writel(0x0, i2s->regs + S3C2412_IISFIC);
> ^~~~~~
> sound/soc/samsung/s3c-i2s-v2.c:400:2: note: here
> case SNDRV_PCM_TRIGGER_RESUME:
> ^~~~
>
> From all I can tell, this was indeed meant to fall through, so
> add "fallthrough;" statement to avoid the warning.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> sound/soc/samsung/s3c-i2s-v2.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Best regards,
Krzysztof
Powered by blists - more mailing lists