All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
To: Timur Tabi <timur@kernel.org>,
	Nicolin Chen <nicoleotsuka@gmail.com>,
	Xiubo Li <Xiubo.Lee@gmail.com>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	linuxppc-dev@lists.ozlabs.org, 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 2/7] ASoC: fsl_esai: Mark expected switch fall-through
Date: Fri, 3 Aug 2018 11:29:53 -0500	[thread overview]
Message-ID: <b866336e8826ed65e2c0d74429f0834474bf1152.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: 1222121 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 sound/soc/fsl/fsl_esai.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index 8f43110..c1d1d06 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -249,6 +249,7 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
 		break;
 	case ESAI_HCKT_EXTAL:
 		ecr |= ESAI_ECR_ETI;
+		/* fall through */
 	case ESAI_HCKR_EXTAL:
 		ecr |= ESAI_ECR_ERI;
 		break;
-- 
2.7.4


  parent reply	other threads:[~2018-08-03 16:29 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 ` Gustavo A. R. Silva [this message]
2018-08-03 17:01   ` Applied "ASoC: fsl_esai: Mark " 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 ` [PATCH 7/7] ASoC: core: mark expected switch fall-through Gustavo A. R. Silva
2018-08-03 17:01   ` Applied "ASoC: core: mark expected switch fall-through" to the asoc tree 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=b866336e8826ed65e2c0d74429f0834474bf1152.1533312229.git.gustavo@embeddedor.com \
    --to=gustavo@embeddedor.com \
    --cc=Xiubo.Lee@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=fabio.estevam@nxp.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=nicoleotsuka@gmail.com \
    --cc=perex@perex.cz \
    --cc=timur@kernel.org \
    --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.