All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs
@ 2018-08-01 19:47 Gustavo A. R. Silva
  2018-08-01 19:47 ` [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (10 more replies)
  0 siblings, 11 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:47 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches, Bard Liao, Oder Chiou
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

Hi all,

In preparation to enabling -Wimplicit-fallthrough, this patchset aims
to add some annotations in order to mark switch cases where we are
expecting to fall through.

Thanks

Gustavo A. R. Silva (11):
  ASoC: wm8961: Mark expected switch fall-through
  ASoC: rt5640: Mark expected switch fall-through
  ASoC: rt5677: Mark expected switch fall-through
  ASoC: wm8955: Mark expected switch fall-through
  ASoC: wm8960: Mark expected switch fall-through
  ASoC: wm8904: Mark expected switch fall-through
  ASoC: wm8996: Mark expected switch fall-through
  ASoC: wm8962: Mark expected switch fall-through
  ASoC: wm8995: Mark expected switch fall-through
  ASoC: wm9081: Mark expected switch fall-through
  ASoC: wm8994: Mark expected switch fall-through

 sound/soc/codecs/rt5640.c | 2 ++
 sound/soc/codecs/rt5677.c | 1 +
 sound/soc/codecs/wm8904.c | 1 +
 sound/soc/codecs/wm8955.c | 1 +
 sound/soc/codecs/wm8960.c | 1 +
 sound/soc/codecs/wm8961.c | 1 +
 sound/soc/codecs/wm8962.c | 1 +
 sound/soc/codecs/wm8994.c | 1 +
 sound/soc/codecs/wm8995.c | 1 +
 sound/soc/codecs/wm8996.c | 1 +
 sound/soc/codecs/wm9081.c | 1 +
 11 files changed, 12 insertions(+)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 39+ messages in thread

* [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
@ 2018-08-01 19:47 ` Gustavo A. R. Silva
  2018-08-02 10:12   ` Applied "ASoC: wm8961: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:49 ` [PATCH 02/11] ASoC: rt5640: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (9 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:47 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1271173 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8961.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c
index f70f563..68b4cad 100644
--- a/sound/soc/codecs/wm8961.c
+++ b/sound/soc/codecs/wm8961.c
@@ -653,6 +653,7 @@ static int wm8961_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8961_LRP;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= 3;
 		switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 02/11] ASoC: rt5640: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
  2018-08-01 19:47 ` [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:49 ` Gustavo A. R. Silva
  2018-08-02 10:12   ` Applied "ASoC: rt5640: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:50 ` [PATCH 03/11] ASoC: rt5677: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (8 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:49 UTC (permalink / raw)
  To: Bard Liao, Oder Chiou, Liam Girdwood, Jaroslav Kysela
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1056547 ("Missing break in switch")
Addresses-Coverity-ID: 1056548 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/rt5640.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 8bf8d36..2777014 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -1665,6 +1665,7 @@ static int get_sdp_info(struct snd_soc_component *component, int dai_id)
 			break;
 		case RT5640_IF_113:
 			ret |= RT5640_U_IF1;
+			/* fall through */
 		case RT5640_IF_312:
 		case RT5640_IF_213:
 			ret |= RT5640_U_IF2;
@@ -1680,6 +1681,7 @@ static int get_sdp_info(struct snd_soc_component *component, int dai_id)
 			break;
 		case RT5640_IF_223:
 			ret |= RT5640_U_IF1;
+			/* fall through */
 		case RT5640_IF_123:
 		case RT5640_IF_321:
 			ret |= RT5640_U_IF2;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 03/11] ASoC: rt5677: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
  2018-08-01 19:47 ` [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through Gustavo A. R. Silva
  2018-08-01 19:49 ` [PATCH 02/11] ASoC: rt5640: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:50 ` Gustavo A. R. Silva
  2018-08-02 10:11   ` Applied "ASoC: rt5677: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:51   ` Gustavo A. R. Silva
                   ` (7 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:50 UTC (permalink / raw)
  To: Bard Liao, Oder Chiou, Liam Girdwood, Jaroslav Kysela
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1271174 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/rt5677.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 8a0181a..922becf 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -4417,6 +4417,7 @@ static int rt5677_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
 		break;
 	case 25:
 		slot_width_25 = 0x8080;
+		/* fall through */
 	case 24:
 		val |= (2 << 8);
 		break;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 04/11] ASoC: wm8955: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
@ 2018-08-01 19:51   ` Gustavo A. R. Silva
  2018-08-01 19:49 ` [PATCH 02/11] ASoC: rt5640: Mark expected switch fall-through Gustavo A. R. Silva
                     ` (9 subsequent siblings)
  10 siblings, 0 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:51 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115047 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8955.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index ba44e3d..cd204f7 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -686,6 +686,7 @@ static int wm8955_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8955_LRP;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= 0x3;
 		break;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 04/11] ASoC: wm8955: Mark expected switch fall-through
@ 2018-08-01 19:51   ` Gustavo A. R. Silva
  0 siblings, 0 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:51 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, Mark Brown, Gustavo A. R. Silva, linux-kernel, Takashi Iwai

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115047 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8955.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index ba44e3d..cd204f7 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -686,6 +686,7 @@ static int wm8955_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8955_LRP;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= 0x3;
 		break;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 05/11] ASoC: wm8960: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (3 preceding siblings ...)
  2018-08-01 19:51   ` Gustavo A. R. Silva
@ 2018-08-01 19:51 ` Gustavo A. R. Silva
  2018-08-02 10:11   ` Applied "ASoC: wm8960: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:52 ` [PATCH 06/11] ASoC: wm8904: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (5 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:51 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115041 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8960.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index c30f5aa..8dc1f3d 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -839,6 +839,7 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
 			iface |= 0x000c;
 			break;
 		}
+		/* fall through */
 	default:
 		dev_err(component->dev, "unsupported width %d\n",
 			params_width(params));
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 06/11] ASoC: wm8904: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (4 preceding siblings ...)
  2018-08-01 19:51 ` [PATCH 05/11] ASoC: wm8960: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:52 ` Gustavo A. R. Silva
  2018-08-02 10:11   ` Applied "ASoC: wm8904: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:53 ` [PATCH 07/11] ASoC: wm8996: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (4 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:52 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115042 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8904.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 9037a35..1965635 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -1455,6 +1455,7 @@ static int wm8904_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif1 |= 0x3 | WM8904_AIF_LRCLK_INV;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif1 |= 0x3;
 		break;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 07/11] ASoC: wm8996: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (5 preceding siblings ...)
  2018-08-01 19:52 ` [PATCH 06/11] ASoC: wm8904: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:53 ` Gustavo A. R. Silva
  2018-08-02 10:11   ` Applied "ASoC: wm8996: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:54 ` [PATCH 08/11] ASoC: wm8962: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (3 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:53 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 146354 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8996.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
index d9d2060..78a4082 100644
--- a/sound/soc/codecs/wm8996.c
+++ b/sound/soc/codecs/wm8996.c
@@ -1858,6 +1858,7 @@ static int wm8996_set_sysclk(struct snd_soc_dai *dai,
 	case 24576000:
 		ratediv = WM8996_SYSCLK_DIV;
 		wm8996->sysclk /= 2;
+		/* fall through */
 	case 11289600:
 	case 12288000:
 		snd_soc_component_update_bits(component, WM8996_AIF_RATE,
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 08/11] ASoC: wm8962: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (6 preceding siblings ...)
  2018-08-01 19:53 ` [PATCH 07/11] ASoC: wm8996: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:54 ` Gustavo A. R. Silva
  2018-08-02 10:11   ` Applied "ASoC: wm8962: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:54 ` [PATCH 09/11] ASoC: wm8995: Mark expected switch fall-through Gustavo A. R. Silva
                   ` (2 subsequent siblings)
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:54 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115043 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8962.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index a11e9d6..efd8910 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2649,6 +2649,7 @@ static int wm8962_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif0 |= WM8962_LRCLK_INV | 3;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif0 |= 3;
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 09/11] ASoC: wm8995: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (7 preceding siblings ...)
  2018-08-01 19:54 ` [PATCH 08/11] ASoC: wm8962: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:54 ` Gustavo A. R. Silva
  2018-08-02 10:10   ` Applied "ASoC: wm8995: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:55 ` [PATCH 10/11] ASoC: wm9081: Mark expected switch fall-through Gustavo A. R. Silva
  2018-08-01 19:56 ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through Gustavo A. R. Silva
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:54 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115045 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8995.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 60e2278..68c99fe 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -1465,6 +1465,7 @@ static int wm8995_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8995_AIF1_LRCLK_INV;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= (0x3 << WM8995_AIF1_FMT_SHIFT);
 		break;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 10/11] ASoC: wm9081: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (8 preceding siblings ...)
  2018-08-01 19:54 ` [PATCH 09/11] ASoC: wm8995: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:55 ` Gustavo A. R. Silva
  2018-08-02 10:10   ` Applied "ASoC: wm9081: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-01 19:56 ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through Gustavo A. R. Silva
  10 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:55 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1357430 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm9081.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c
index 5a0ea7b..399255d1 100644
--- a/sound/soc/codecs/wm9081.c
+++ b/sound/soc/codecs/wm9081.c
@@ -933,6 +933,7 @@ static int wm9081_set_dai_fmt(struct snd_soc_dai *dai,
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif2 |= WM9081_AIF_LRCLK_INV;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif2 |= 0x3;
 		break;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
                   ` (9 preceding siblings ...)
  2018-08-01 19:55 ` [PATCH 10/11] ASoC: wm9081: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-01 19:56 ` Gustavo A. R. Silva
  2018-08-02 10:10   ` Applied "ASoC: wm8994: Mark expected switch fall-through" to the asoc tree Mark Brown
  2018-08-03 16:26   ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through valdis.kletnieks
  10 siblings, 2 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-01 19:56 UTC (permalink / raw)
  To: Liam Girdwood, Jaroslav Kysela, patches
  Cc: alsa-devel, linux-kernel, Takashi Iwai, Mark Brown, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115050 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/codecs/wm8994.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 7fdfdf3..62f8c5b 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2432,6 +2432,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
 			snd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_2,
 					    WM8994_OPCLK_ENA, 0);
 		}
+		/* fall through */
 
 	default:
 		return -EINVAL;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8994: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:56 ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:10   ` Mark Brown
  2018-08-03 16:26   ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through valdis.kletnieks
  1 sibling, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:10 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8994: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 2cea1542859bc812f1ec51ea71c06e927e5b922e Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:56:16 -0500
Subject: [PATCH] ASoC: wm8994: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115050 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8994.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 7fdfdf3f6e67..62f8c5b9ba92 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2432,6 +2432,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
 			snd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_2,
 					    WM8994_OPCLK_ENA, 0);
 		}
+		/* fall through */
 
 	default:
 		return -EINVAL;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm9081: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:55 ` [PATCH 10/11] ASoC: wm9081: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:10   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:10 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm9081: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 7a2235ef507822679ac89007a6a37b23f30eed56 Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:55:26 -0500
Subject: [PATCH] ASoC: wm9081: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1357430 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm9081.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c
index 5a0ea7b3c149..399255d1f78a 100644
--- a/sound/soc/codecs/wm9081.c
+++ b/sound/soc/codecs/wm9081.c
@@ -933,6 +933,7 @@ static int wm9081_set_dai_fmt(struct snd_soc_dai *dai,
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif2 |= WM9081_AIF_LRCLK_INV;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif2 |= 0x3;
 		break;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8995: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:54 ` [PATCH 09/11] ASoC: wm8995: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:10   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:10 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8995: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From af5d1d5d4ba71164711025e077511ad48d5690e9 Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:54:45 -0500
Subject: [PATCH] ASoC: wm8995: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115045 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8995.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 60e227832331..68c99fe37097 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -1465,6 +1465,7 @@ static int wm8995_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8995_AIF1_LRCLK_INV;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= (0x3 << WM8995_AIF1_FMT_SHIFT);
 		break;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8962: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:54 ` [PATCH 08/11] ASoC: wm8962: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:11   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:11 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8962: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From a9531ab151117e976544e0dc74a9bc8cbd01145f Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:54:03 -0500
Subject: [PATCH] ASoC: wm8962: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115043 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8962.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index a11e9d6bf950..efd8910b1ff7 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2649,6 +2649,7 @@ static int wm8962_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif0 |= WM8962_LRCLK_INV | 3;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif0 |= 3;
 
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8996: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:53 ` [PATCH 07/11] ASoC: wm8996: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:11   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:11 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8996: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 42ef3c94ff6e8315377c04504f1bce50d1f21738 Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:53:19 -0500
Subject: [PATCH] ASoC: wm8996: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 146354 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8996.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
index d9d206046f8c..78a408236cfb 100644
--- a/sound/soc/codecs/wm8996.c
+++ b/sound/soc/codecs/wm8996.c
@@ -1858,6 +1858,7 @@ static int wm8996_set_sysclk(struct snd_soc_dai *dai,
 	case 24576000:
 		ratediv = WM8996_SYSCLK_DIV;
 		wm8996->sysclk /= 2;
+		/* fall through */
 	case 11289600:
 	case 12288000:
 		snd_soc_component_update_bits(component, WM8996_AIF_RATE,
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8904: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:52 ` [PATCH 06/11] ASoC: wm8904: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:11   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:11 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8904: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From da41787b9f319a7a23fcc8cf65c6ad646803962e Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:52:41 -0500
Subject: [PATCH] ASoC: wm8904: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115042 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8904.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 9037a35b931d..1965635ec07c 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -1455,6 +1455,7 @@ static int wm8904_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif1 |= 0x3 | WM8904_AIF_LRCLK_INV;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif1 |= 0x3;
 		break;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8960: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:51 ` [PATCH 05/11] ASoC: wm8960: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:11   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:11 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8960: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 3eb7dbc6d844d2033271434d02ff90ac9b19e393 Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:51:59 -0500
Subject: [PATCH] ASoC: wm8960: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115041 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8960.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index c30f5aa392c6..8dc1f3d6a988 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -839,6 +839,7 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
 			iface |= 0x000c;
 			break;
 		}
+		/* fall through */
 	default:
 		dev_err(component->dev, "unsupported width %d\n",
 			params_width(params));
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8955: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:51   ` Gustavo A. R. Silva
  (?)
@ 2018-08-02 10:11   ` Mark Brown
  -1 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:11 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8955: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 85e7e77079f3201799467803f6c8533a9921e32d Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:51:18 -0500
Subject: [PATCH] ASoC: wm8955: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115047 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8955.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index ba44e3d6c1e0..cd204f79647d 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -686,6 +686,7 @@ static int wm8955_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8955_LRP;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= 0x3;
 		break;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: rt5677: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:50 ` [PATCH 03/11] ASoC: rt5677: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:11   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:11 UTC (permalink / raw)
  Cc: Oder Chiou, alsa-devel, Gustavo A. R. Silva, linux-kernel,
	Takashi Iwai, Liam Girdwood, Mark Brown, Bard Liao

The patch

   ASoC: rt5677: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 43a26bd026dab09a8b28c40e94ba534a52375b20 Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:50:20 -0500
Subject: [PATCH] ASoC: rt5677: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1271174 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5677.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 8a0181a2db08..922becfee59b 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -4417,6 +4417,7 @@ static int rt5677_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
 		break;
 	case 25:
 		slot_width_25 = 0x8080;
+		/* fall through */
 	case 24:
 		val |= (2 << 8);
 		break;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: rt5640: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:49 ` [PATCH 02/11] ASoC: rt5640: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:12   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:12 UTC (permalink / raw)
  Cc: Oder Chiou, alsa-devel, Gustavo A. R. Silva, linux-kernel,
	Takashi Iwai, Liam Girdwood, Mark Brown, Bard Liao

The patch

   ASoC: rt5640: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 065dcc270af66acb4226b49f635b41a054b663d4 Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:49:13 -0500
Subject: [PATCH] ASoC: rt5640: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1056547 ("Missing break in switch")
Addresses-Coverity-ID: 1056548 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/rt5640.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 8bf8d360c25f..27770143ae8f 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -1665,6 +1665,7 @@ static int get_sdp_info(struct snd_soc_component *component, int dai_id)
 			break;
 		case RT5640_IF_113:
 			ret |= RT5640_U_IF1;
+			/* fall through */
 		case RT5640_IF_312:
 		case RT5640_IF_213:
 			ret |= RT5640_U_IF2;
@@ -1680,6 +1681,7 @@ static int get_sdp_info(struct snd_soc_component *component, int dai_id)
 			break;
 		case RT5640_IF_223:
 			ret |= RT5640_U_IF1;
+			/* fall through */
 		case RT5640_IF_123:
 		case RT5640_IF_321:
 			ret |= RT5640_U_IF2;
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Applied "ASoC: wm8961: Mark expected switch fall-through" to the asoc tree
  2018-08-01 19:47 ` [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through Gustavo A. R. Silva
@ 2018-08-02 10:12   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-02 10:12 UTC (permalink / raw)
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, Mark Brown, linux-kernel

The patch

   ASoC: wm8961: Mark expected switch fall-through

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 9a73f6a235c2351adc07471519d4980e2fb33bbc Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 1 Aug 2018 14:47:09 -0500
Subject: [PATCH] ASoC: wm8961: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1271173 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8961.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c
index f70f563d59f3..68b4cadc308f 100644
--- a/sound/soc/codecs/wm8961.c
+++ b/sound/soc/codecs/wm8961.c
@@ -653,6 +653,7 @@ static int wm8961_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 
 	case SND_SOC_DAIFMT_DSP_B:
 		aif |= WM8961_LRP;
+		/* fall through */
 	case SND_SOC_DAIFMT_DSP_A:
 		aif |= 3;
 		switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-01 19:56 ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through Gustavo A. R. Silva
  2018-08-02 10:10   ` Applied "ASoC: wm8994: Mark expected switch fall-through" to the asoc tree Mark Brown
@ 2018-08-03 16:26   ` valdis.kletnieks
  2018-08-03 16:41     ` Gustavo A. R. Silva
  1 sibling, 1 reply; 39+ messages in thread
From: valdis.kletnieks @ 2018-08-03 16:26 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: Liam Girdwood, Jaroslav Kysela, patches, alsa-devel,
	linux-kernel, Takashi Iwai, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

On Wed, 01 Aug 2018 14:56:16 -0500, "Gustavo A. R. Silva" said:

> diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
> index 7fdfdf3..62f8c5b 100644
> --- a/sound/soc/codecs/wm8994.c
> +++ b/sound/soc/codecs/wm8994.c
> @@ -2432,6 +2432,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
>  			snd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_2,
>  					    WM8994_OPCLK_ENA, 0);
>  		}
> +		/* fall through */
>
>  	default:
>  		return -EINVAL;

Wait, what? This looks like the sort of bug -Wimplicit-fallthrough is supposed
to catch.  Unless for 'case WM8994_SYSCLK_OPCLK:' we actually do want to do a
whole bunch of snd_soc_component_update_bits() calls and then return -EINVAL
whether or not that case succeeded?



[-- Attachment #2: Type: application/pgp-signature, Size: 486 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-03 16:26   ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through valdis.kletnieks
@ 2018-08-03 16:41     ` Gustavo A. R. Silva
  2018-08-03 16:45         ` Mark Brown
  0 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-03 16:41 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: Liam Girdwood, Jaroslav Kysela, patches, alsa-devel,
	linux-kernel, Takashi Iwai, Mark Brown



On 08/03/2018 11:26 AM, valdis.kletnieks@vt.edu wrote:
> On Wed, 01 Aug 2018 14:56:16 -0500, "Gustavo A. R. Silva" said:
> 
>> diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
>> index 7fdfdf3..62f8c5b 100644
>> --- a/sound/soc/codecs/wm8994.c
>> +++ b/sound/soc/codecs/wm8994.c
>> @@ -2432,6 +2432,7 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
>>  			snd_soc_component_update_bits(component, WM8994_POWER_MANAGEMENT_2,
>>  					    WM8994_OPCLK_ENA, 0);
>>  		}
>> +		/* fall through */
>>
>>  	default:
>>  		return -EINVAL;
> 
> Wait, what? This looks like the sort of bug -Wimplicit-fallthrough is supposed
> to catch.  Unless for 'case WM8994_SYSCLK_OPCLK:' we actually do want to do a
> whole bunch of snd_soc_component_update_bits() calls and then return -EINVAL
> whether or not that case succeeded?
> 
> 

Yeah, it seems like a bug. Can someone confirm this?

Notice that this code has been there since 2010.

Thanks Valdis for pointing this out.
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-03 16:41     ` Gustavo A. R. Silva
@ 2018-08-03 16:45         ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-03 16:45 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: valdis.kletnieks, Liam Girdwood, Jaroslav Kysela, patches,
	alsa-devel, linux-kernel, Takashi Iwai

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

On Fri, Aug 03, 2018 at 11:41:39AM -0500, Gustavo A. R. Silva wrote:
> On 08/03/2018 11:26 AM, valdis.kletnieks@vt.edu wrote:
> > On Wed, 01 Aug 2018 14:56:16 -0500, "Gustavo A. R. Silva" said:

> > Wait, what? This looks like the sort of bug -Wimplicit-fallthrough is supposed
> > to catch.  Unless for 'case WM8994_SYSCLK_OPCLK:' we actually do want to do a
> > whole bunch of snd_soc_component_update_bits() calls and then return -EINVAL
> > whether or not that case succeeded?

> Yeah, it seems like a bug. Can someone confirm this?

> Notice that this code has been there since 2010.

Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
noticed.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
@ 2018-08-03 16:45         ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-03 16:45 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: alsa-devel, valdis.kletnieks, patches, Takashi Iwai,
	Liam Girdwood, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 667 bytes --]

On Fri, Aug 03, 2018 at 11:41:39AM -0500, Gustavo A. R. Silva wrote:
> On 08/03/2018 11:26 AM, valdis.kletnieks@vt.edu wrote:
> > On Wed, 01 Aug 2018 14:56:16 -0500, "Gustavo A. R. Silva" said:

> > Wait, what? This looks like the sort of bug -Wimplicit-fallthrough is supposed
> > to catch.  Unless for 'case WM8994_SYSCLK_OPCLK:' we actually do want to do a
> > whole bunch of snd_soc_component_update_bits() calls and then return -EINVAL
> > whether or not that case succeeded?

> Yeah, it seems like a bug. Can someone confirm this?

> Notice that this code has been there since 2010.

Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
noticed.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-03 16:45         ` Mark Brown
  (?)
@ 2018-08-03 16:56         ` Gustavo A. R. Silva
  2018-08-03 17:55           ` valdis.kletnieks
  -1 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-03 16:56 UTC (permalink / raw)
  To: Mark Brown
  Cc: valdis.kletnieks, Liam Girdwood, Jaroslav Kysela, patches,
	alsa-devel, linux-kernel, Takashi Iwai



On 08/03/2018 11:45 AM, Mark Brown wrote:
> On Fri, Aug 03, 2018 at 11:41:39AM -0500, Gustavo A. R. Silva wrote:
>> On 08/03/2018 11:26 AM, valdis.kletnieks@vt.edu wrote:
>>> On Wed, 01 Aug 2018 14:56:16 -0500, "Gustavo A. R. Silva" said:
> 
>>> Wait, what? This looks like the sort of bug -Wimplicit-fallthrough is supposed
>>> to catch.  Unless for 'case WM8994_SYSCLK_OPCLK:' we actually do want to do a
>>> whole bunch of snd_soc_component_update_bits() calls and then return -EINVAL
>>> whether or not that case succeeded?
> 
>> Yeah, it seems like a bug. Can someone confirm this?
> 
>> Notice that this code has been there since 2010.
> 
> Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
> noticed.
> 

I see. I wonder what's the best approach in this case. Should that code be removed instead of 'fixed'?

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-03 16:56         ` Gustavo A. R. Silva
@ 2018-08-03 17:55           ` valdis.kletnieks
  2018-08-03 18:24               ` Gustavo A. R. Silva
  2018-08-06 11:34               ` Mark Brown
  0 siblings, 2 replies; 39+ messages in thread
From: valdis.kletnieks @ 2018-08-03 17:55 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: Mark Brown, Liam Girdwood, Jaroslav Kysela, patches, alsa-devel,
	linux-kernel, Takashi Iwai

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

On Fri, 03 Aug 2018 11:56:12 -0500, "Gustavo A. R. Silva" said:
> On 08/03/2018 11:45 AM, Mark Brown wrote:
> > Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
> > noticed.

I wonder if nobody uses it because any attempts to do so get an error? :)

> I see. I wonder what's the best approach in this case. Should that code be
> removed instead of 'fixed'?

I'm thinking that's a spot that needs a 'break;' added.

Of course, my understanding of that code is limited to looking at the first 10
patches and the fall-through hit something reasonable, and then the last
one did a fall-through to an error return.

[-- Attachment #2: Type: application/pgp-signature, Size: 486 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-03 17:55           ` valdis.kletnieks
@ 2018-08-03 18:24               ` Gustavo A. R. Silva
  2018-08-06 11:34               ` Mark Brown
  1 sibling, 0 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-03 18:24 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: Mark Brown, Liam Girdwood, Jaroslav Kysela, patches, alsa-devel,
	linux-kernel, Takashi Iwai



On 08/03/2018 12:55 PM, valdis.kletnieks@vt.edu wrote:
> On Fri, 03 Aug 2018 11:56:12 -0500, "Gustavo A. R. Silva" said:
>> On 08/03/2018 11:45 AM, Mark Brown wrote:
>>> Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
>>> noticed.
> 
> I wonder if nobody uses it because any attempts to do so get an error? :)
> 
>> I see. I wonder what's the best approach in this case. Should that code be
>> removed instead of 'fixed'?
> 
> I'm thinking that's a spot that needs a 'break;' added.
> 

Yep. And I think the patch to fix this should be tagged for stable.

So, it seems we have two options:

1. Revert commit 2cea1542859bc812f1ec51ea71c06e927e5b922e and then apply a fix with the break statement.

or

2. Apply a fix with the break statement and then backport the fix to stable.

am I correct?

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
@ 2018-08-03 18:24               ` Gustavo A. R. Silva
  0 siblings, 0 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-03 18:24 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: alsa-devel, patches, Takashi Iwai, Liam Girdwood, linux-kernel,
	Mark Brown



On 08/03/2018 12:55 PM, valdis.kletnieks@vt.edu wrote:
> On Fri, 03 Aug 2018 11:56:12 -0500, "Gustavo A. R. Silva" said:
>> On 08/03/2018 11:45 AM, Mark Brown wrote:
>>> Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
>>> noticed.
> 
> I wonder if nobody uses it because any attempts to do so get an error? :)
> 
>> I see. I wonder what's the best approach in this case. Should that code be
>> removed instead of 'fixed'?
> 
> I'm thinking that's a spot that needs a 'break;' added.
> 

Yep. And I think the patch to fix this should be tagged for stable.

So, it seems we have two options:

1. Revert commit 2cea1542859bc812f1ec51ea71c06e927e5b922e and then apply a fix with the break statement.

or

2. Apply a fix with the break statement and then backport the fix to stable.

am I correct?

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-03 17:55           ` valdis.kletnieks
@ 2018-08-06 11:34               ` Mark Brown
  2018-08-06 11:34               ` Mark Brown
  1 sibling, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-06 11:34 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: Gustavo A. R. Silva, Liam Girdwood, Jaroslav Kysela, patches,
	alsa-devel, linux-kernel, Takashi Iwai

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

On Fri, Aug 03, 2018 at 01:55:18PM -0400, valdis.kletnieks@vt.edu wrote:
> On Fri, 03 Aug 2018 11:56:12 -0500, "Gustavo A. R. Silva" said:
> > On 08/03/2018 11:45 AM, Mark Brown wrote:
> > > Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
> > > noticed.

> I wonder if nobody uses it because any attempts to do so get an error? :)

No, nobody ever physically wires up an OPCLK.  If one was there it'd be
unavoidable.

> > I see. I wonder what's the best approach in this case. Should that code be
> > removed instead of 'fixed'?

> I'm thinking that's a spot that needs a 'break;' added.

Yes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
@ 2018-08-06 11:34               ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-06 11:34 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: alsa-devel, Gustavo A. R. Silva, patches, Takashi Iwai,
	Liam Girdwood, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 614 bytes --]

On Fri, Aug 03, 2018 at 01:55:18PM -0400, valdis.kletnieks@vt.edu wrote:
> On Fri, 03 Aug 2018 11:56:12 -0500, "Gustavo A. R. Silva" said:
> > On 08/03/2018 11:45 AM, Mark Brown wrote:
> > > Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
> > > noticed.

> I wonder if nobody uses it because any attempts to do so get an error? :)

No, nobody ever physically wires up an OPCLK.  If one was there it'd be
unavoidable.

> > I see. I wonder what's the best approach in this case. Should that code be
> > removed instead of 'fixed'?

> I'm thinking that's a spot that needs a 'break;' added.

Yes.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-06 11:34               ` Mark Brown
  (?)
@ 2018-08-06 11:48               ` Gustavo A. R. Silva
  2018-08-06 11:52                   ` Mark Brown
  -1 siblings, 1 reply; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-06 11:48 UTC (permalink / raw)
  To: Mark Brown, valdis.kletnieks
  Cc: Liam Girdwood, Jaroslav Kysela, patches, alsa-devel,
	linux-kernel, Takashi Iwai



On 08/06/2018 06:34 AM, Mark Brown wrote:
> On Fri, Aug 03, 2018 at 01:55:18PM -0400, valdis.kletnieks@vt.edu wrote:
>> On Fri, 03 Aug 2018 11:56:12 -0500, "Gustavo A. R. Silva" said:
>>> On 08/03/2018 11:45 AM, Mark Brown wrote:
>>>> Basically nobody ever uses OPCLK so I'd be susprised if anyone ever
>>>> noticed.
> 
>> I wonder if nobody uses it because any attempts to do so get an error? :)
> 
> No, nobody ever physically wires up an OPCLK.  If one was there it'd be
> unavoidable.
> 
>>> I see. I wonder what's the best approach in this case. Should that code be
>>> removed instead of 'fixed'?
> 
>> I'm thinking that's a spot that needs a 'break;' added.
> 
> Yes.
> 

OK. I'll send a patch for this. But I wonder what's the best approach in this case,
so the fix can also be applied to stable.

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-06 11:48               ` Gustavo A. R. Silva
@ 2018-08-06 11:52                   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-06 11:52 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: valdis.kletnieks, Liam Girdwood, Jaroslav Kysela, patches,
	alsa-devel, linux-kernel, Takashi Iwai

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

On Mon, Aug 06, 2018 at 06:48:13AM -0500, Gustavo A. R. Silva wrote:

Please fix your mail client to word wrap within paragraphs at something
substantially less than 80 columns.  Doing this makes your messages much
easier to read and reply to.

> OK. I'll send a patch for this. But I wonder what's the best approach in this case,
> so the fix can also be applied to stable.

Just send a patch, a fixup can be done when the backport fails.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
@ 2018-08-06 11:52                   ` Mark Brown
  0 siblings, 0 replies; 39+ messages in thread
From: Mark Brown @ 2018-08-06 11:52 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: alsa-devel, valdis.kletnieks, patches, Takashi Iwai,
	Liam Girdwood, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 440 bytes --]

On Mon, Aug 06, 2018 at 06:48:13AM -0500, Gustavo A. R. Silva wrote:

Please fix your mail client to word wrap within paragraphs at something
substantially less than 80 columns.  Doing this makes your messages much
easier to read and reply to.

> OK. I'll send a patch for this. But I wonder what's the best approach in this case,
> so the fix can also be applied to stable.

Just send a patch, a fixup can be done when the backport fails.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
  2018-08-06 11:52                   ` Mark Brown
@ 2018-08-06 11:59                     ` Gustavo A. R. Silva
  -1 siblings, 0 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-06 11:59 UTC (permalink / raw)
  To: Mark Brown
  Cc: valdis.kletnieks, Liam Girdwood, Jaroslav Kysela, patches,
	alsa-devel, linux-kernel, Takashi Iwai



On 08/06/2018 06:52 AM, Mark Brown wrote:
> On Mon, Aug 06, 2018 at 06:48:13AM -0500, Gustavo A. R. Silva wrote:
> 
> Please fix your mail client to word wrap within paragraphs at something
> substantially less than 80 columns.  Doing this makes your messages much
> easier to read and reply to.
> 

Sure thing.

>> OK. I'll send a patch for this. But I wonder what's the best approach in this case,
>> so the fix can also be applied to stable.
> 
> Just send a patch, a fixup can be done when the backport fails.
> 

I got it.

I'll send the patch and I'll take care of the backport when the
time comes.

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

* Re: [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through
@ 2018-08-06 11:59                     ` Gustavo A. R. Silva
  0 siblings, 0 replies; 39+ messages in thread
From: Gustavo A. R. Silva @ 2018-08-06 11:59 UTC (permalink / raw)
  To: Mark Brown
  Cc: alsa-devel, valdis.kletnieks, patches, Takashi Iwai,
	Liam Girdwood, linux-kernel



On 08/06/2018 06:52 AM, Mark Brown wrote:
> On Mon, Aug 06, 2018 at 06:48:13AM -0500, Gustavo A. R. Silva wrote:
> 
> Please fix your mail client to word wrap within paragraphs at something
> substantially less than 80 columns.  Doing this makes your messages much
> easier to read and reply to.
> 

Sure thing.

>> OK. I'll send a patch for this. But I wonder what's the best approach in this case,
>> so the fix can also be applied to stable.
> 
> Just send a patch, a fixup can be done when the backport fails.
> 

I got it.

I'll send the patch and I'll take care of the backport when the
time comes.

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2018-08-06 11:59 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 19:47 [PATCH 00/11] ASoC: codecs: Mark expected switch fall-throughs Gustavo A. R. Silva
2018-08-01 19:47 ` [PATCH 01/11] ASoC: wm8961: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:12   ` Applied "ASoC: wm8961: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:49 ` [PATCH 02/11] ASoC: rt5640: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:12   ` Applied "ASoC: rt5640: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:50 ` [PATCH 03/11] ASoC: rt5677: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:11   ` Applied "ASoC: rt5677: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:51 ` [PATCH 04/11] ASoC: wm8955: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-01 19:51   ` Gustavo A. R. Silva
2018-08-02 10:11   ` Applied "ASoC: wm8955: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:51 ` [PATCH 05/11] ASoC: wm8960: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:11   ` Applied "ASoC: wm8960: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:52 ` [PATCH 06/11] ASoC: wm8904: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:11   ` Applied "ASoC: wm8904: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:53 ` [PATCH 07/11] ASoC: wm8996: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:11   ` Applied "ASoC: wm8996: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:54 ` [PATCH 08/11] ASoC: wm8962: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:11   ` Applied "ASoC: wm8962: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:54 ` [PATCH 09/11] ASoC: wm8995: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:10   ` Applied "ASoC: wm8995: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:55 ` [PATCH 10/11] ASoC: wm9081: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:10   ` Applied "ASoC: wm9081: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-01 19:56 ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-02 10:10   ` Applied "ASoC: wm8994: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-03 16:26   ` [PATCH 11/11] ASoC: wm8994: Mark expected switch fall-through valdis.kletnieks
2018-08-03 16:41     ` Gustavo A. R. Silva
2018-08-03 16:45       ` Mark Brown
2018-08-03 16:45         ` Mark Brown
2018-08-03 16:56         ` Gustavo A. R. Silva
2018-08-03 17:55           ` valdis.kletnieks
2018-08-03 18:24             ` Gustavo A. R. Silva
2018-08-03 18:24               ` Gustavo A. R. Silva
2018-08-06 11:34             ` Mark Brown
2018-08-06 11:34               ` Mark Brown
2018-08-06 11:48               ` Gustavo A. R. Silva
2018-08-06 11:52                 ` Mark Brown
2018-08-06 11:52                   ` Mark Brown
2018-08-06 11:59                   ` Gustavo A. R. Silva
2018-08-06 11:59                     ` Gustavo A. R. Silva

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.