All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
To: linux-kernel@vger.kernel.org
Cc: alsa-devel@alsa-project.org, Takashi Iwai <tiwai@suse.com>,
	Jaroslav Kysela <perex@perex.cz>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	"Gustavo A. R. Silva" <gustavo@embeddedor.com>
Subject: [PATCH 7/7] ASoC: core: mark expected switch fall-through
Date: Fri, 3 Aug 2018 11:34:30 -0500	[thread overview]
Message-ID: <9d6ffc4ad5ecbd4287f5787e66aadc70f9168c2f.1533312229.git.gustavo@embeddedor.com> (raw)
In-Reply-To: <cover.1533312229.git.gustavo@embeddedor.com>

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

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

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 82eb386..9cfe10d 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -528,6 +528,7 @@ int snd_soc_suspend(struct device *dev)
 						"ASoC: idle_bias_off CODEC on over suspend\n");
 					break;
 				}
+				/* fall through */
 
 			case SND_SOC_BIAS_OFF:
 				if (component->driver->suspend)
-- 
2.7.4


  parent reply	other threads:[~2018-08-03 16:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-03 16:26 [PATCH 0/7] ASoC: Mark expected switch fall-throughs Gustavo A. R. Silva
2018-08-03 16:26 ` Gustavo A. R. Silva
2018-08-03 16:28 ` [PATCH 1/7] ASoC: davinci-i2s: mark expected switch fall-through Gustavo A. R. Silva
2018-08-03 16:28   ` Gustavo A. R. Silva
2018-08-03 17:01   ` Applied "ASoC: davinci-i2s: mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-03 16:29 ` [PATCH 2/7] ASoC: fsl_esai: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-03 17:01   ` Applied "ASoC: fsl_esai: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-03 17:01     ` Mark Brown
2018-08-03 16:30 ` [PATCH 3/7] ASoC: Intel: skl-pcm: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-03 16:31 ` [PATCH 4/7] ASoC: omap-dmic: Mark expected switch fall-throughs Gustavo A. R. Silva
2018-08-03 16:31   ` Gustavo A. R. Silva
2018-08-03 17:01   ` Applied "ASoC: omap-dmic: Mark expected switch fall-throughs" to the asoc tree Mark Brown
2018-08-03 16:32 ` [PATCH 5/7] ASoC: omap-mcpdm: Mark expected switch fall-throughs Gustavo A. R. Silva
2018-08-03 17:01   ` Applied "ASoC: omap-mcpdm: Mark expected switch fall-throughs" to the asoc tree Mark Brown
2018-08-03 16:33 ` [PATCH 6/7] ASoC: samsung: i2s: Mark expected switch fall-through Gustavo A. R. Silva
2018-08-03 17:00   ` Applied "ASoC: samsung: i2s: Mark expected switch fall-through" to the asoc tree Mark Brown
2018-08-03 16:34 ` Gustavo A. R. Silva [this message]
2018-08-03 17:01   ` Applied "ASoC: core: mark " Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d6ffc4ad5ecbd4287f5787e66aadc70f9168c2f.1533312229.git.gustavo@embeddedor.com \
    --to=gustavo@embeddedor.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.