mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@linaro.org>
To: Enno Onneken <ennoonneken@outlook.de>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] reboot: add missing break to switch statement for LINUX_REBOOT_CMD_HALT
Date: Wed, 14 Aug 2024 18:47:00 +0300	[thread overview]
Message-ID: <750452a3-ac8a-4af5-849f-3db83158a1e5@stanley.mountain> (raw)
In-Reply-To: <FRZP193MB2563F43FFC350926C0B7EEB1DC872@FRZP193MB2563.EURP193.PROD.OUTLOOK.COM>

On Wed, Aug 14, 2024 at 04:24:45PM +0200, Enno Onneken wrote:
> All switch-cases should be isolated from each other due to shutting
> down/rebooting the kernel in different ways.
> In order to fully isolate this case (like all the others are), this patch
> adds a "break;" after do_exit(0); .

This patch is obviously harmless but the commit message is not clear what the
motivation is.  "missing break" in the subject is misleading.

do_exit() is annotated as a __noreturn function so it's already "fully
isolated".  It sounds like you are using a tool which doesn't understand the
no return attributes.  Better to fix that instead.

> 
> Fixes: 15d94b82565e ("reboot: move shutdown/reboot related functions to kernel/reboot.c")

This isn't a bugfix so a Fixes tag isn't appropriate.

regards,
dan carpenter


  reply	other threads:[~2024-08-14 15:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-14 14:24 Enno Onneken
2024-08-14 15:47 ` Dan Carpenter [this message]
2024-08-14 18:12   ` Dan Carpenter

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=750452a3-ac8a-4af5-849f-3db83158a1e5@stanley.mountain \
    --to=dan.carpenter@linaro.org \
    --cc=akpm@linux-foundation.org \
    --cc=ennoonneken@outlook.de \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®