public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
To: Mark Salter <msalter@redhat.com>,
	Aurelien Jacquiot <jacquiot.aurelien@gmail.com>,
	Christian Brauner <christian.brauner@ubuntu.com>
Cc: linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org,
	"Gustavo A. R. Silva" <gustavo@embeddedor.com>
Subject: [PATCH] c6x: traps: Mark expected switch fall-through
Date: Mon, 8 Jun 2020 12:42:02 -0500	[thread overview]
Message-ID: <20200608174202.GA32421@embeddedor> (raw)

Mark switch cases where we are expecting to fall through.

Fix the following warning through the use of the new the new
pseudo-keyword fallthrough;

arch/c6x/kernel/traps.c:335:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
  335 |    ie_num = 8;
      |    ~~~~~~~^~~
arch/c6x/kernel/traps.c:336:3: note: here
  336 |   default:
      |   ^~~~~~~

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
---
 arch/c6x/kernel/traps.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/c6x/kernel/traps.c b/arch/c6x/kernel/traps.c
index 2b9121c755be1..bd0a477d3816d 100644
--- a/arch/c6x/kernel/traps.c
+++ b/arch/c6x/kernel/traps.c
@@ -333,6 +333,7 @@ asmlinkage int process_exception(struct pt_regs *regs)
 
 		case EXCEPT_TYPE_SXF:
 			ie_num = 8;
+			fallthrough;
 		default:
 			ack_exception(type_num);
 			do_trap(&iexcept_table[ie_num], regs);
-- 
2.27.0


                 reply	other threads:[~2020-06-08 17:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20200608174202.GA32421@embeddedor \
    --to=gustavoars@kernel.org \
    --cc=christian.brauner@ubuntu.com \
    --cc=gustavo@embeddedor.com \
    --cc=jacquiot.aurelien@gmail.com \
    --cc=linux-c6x-dev@linux-c6x.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=msalter@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox