All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmytro Prokopchuk1 <dmytro_prokopchuk1@epam.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 06/12] kexec: machine_reboot_kexec() doesn't return
Date: Mon, 5 Oct 2026 10:38:11 +0000	[thread overview]
Message-ID: <a016bb1f-3178-404f-8ace-a33575a2de2d@epam.com> (raw)
In-Reply-To: <d7bb3db821a0018d7b0dc5c8a6729df9@bugseng.com>



On 8/28/26 12:55, Nicola Vetrini wrote:
> On 2026-08-28 09:02, Jan Beulich wrote:
>> Mark it as such, and then remove the code following at its sole call 
>> site,
>> for Eclair flagging that as a Misra rule 2.1 (unreachable code) 
>> violation.
>>
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>>
> 
> Reviewed-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
> 
>> --- a/xen/common/kexec.c
>> +++ b/xen/common/kexec.c
>> @@ -401,7 +401,7 @@ void kexec_crash(enum crash_reason reaso
>>      BUG();
>>  }
>>
>> -static long cf_check kexec_reboot(void *_image)
>> +static long noreturn cf_check kexec_reboot(void *_image)
>>  {
>>      struct kexec_image *image = _image;
>>
>> @@ -409,9 +409,6 @@ static long cf_check kexec_reboot(void *
>>
>>      kexec_common_shutdown();
>>      machine_reboot_kexec(image);
>> -
>> -    BUG();
>> -    return 0;
>>  }
>>
>>  static void cf_check do_crashdump_trigger(unsigned char key)
>> --- a/xen/include/xen/kexec.h
>> +++ b/xen/include/xen/kexec.h
>> @@ -48,7 +48,7 @@ int machine_kexec_add_page(struct kexec_
>>  int machine_kexec_load(struct kexec_image *image);
>>  void machine_kexec_unload(struct kexec_image *image);
>>  void machine_kexec_reserved(xen_kexec_reserve_t *reservation);
>> -void machine_reboot_kexec(struct kexec_image *image);
>> +void noreturn machine_reboot_kexec(struct kexec_image *image);
>>  void machine_kexec(struct kexec_image *image);
>>  void kexec_crash(enum crash_reason reason);
>>  void kexec_crash_save_cpu(void);
> 

LGTM.

Reviewed-by: Dmytro Prokopchuk <dmytro_prokopchuk1@epam.com>

  reply	other threads:[~2026-10-05 10:38 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-28  6:58 [PATCH 00/12] address most remaining Misra rule 2.1 violations Jan Beulich
2026-08-28  6:59 ` [PATCH 01/12] x86/IO-APIC: address Misra 2.1 rule violations Jan Beulich
2026-08-28  8:31   ` Nicola Vetrini
2026-09-10  7:38   ` Roger Pau Monné
2026-08-28  7:00 ` [PATCH 02/12] x86/mm: pagetable_dying() is HVM+SHADOW_PAGING only Jan Beulich
2026-09-10  7:36   ` Roger Pau Monné
2026-08-28  7:00 ` [PATCH 03/12] x86/shadow: eliminate unused forms of sh_map_and_validate_gl<N>e() Jan Beulich
2026-09-10  7:45   ` Roger Pau Monné
2026-08-28  7:01 ` [PATCH 04/12] x86: add noreturn in a few more places Jan Beulich
2026-08-29 13:21   ` Nicola Vetrini
2026-09-01  8:10     ` Jan Beulich
2026-08-31 19:13   ` Andrew Cooper
2026-09-01  6:26     ` Jan Beulich
2026-09-09 19:07       ` Nicola Vetrini
2026-09-10  6:43         ` Jan Beulich
2026-09-11 20:48           ` Nicola Vetrini
2026-09-14  7:06             ` Jan Beulich
2026-09-14  7:11             ` Jan Beulich
2026-09-01  6:31     ` Jan Beulich
2026-08-28  7:02 ` [PATCH 05/12] x86/crash: address Misra 2.1 rule violation Jan Beulich
2026-09-10  7:49   ` Roger Pau Monné
2026-09-10  8:38     ` Jan Beulich
2026-09-10  9:30       ` Roger Pau Monné
2026-09-10  9:52         ` Jan Beulich
2026-09-10 12:29           ` Roger Pau Monné
2026-09-11 18:53             ` Nicola Vetrini
2026-09-14  6:44               ` Jan Beulich
2026-10-05  9:44                 ` Dmytro Prokopchuk1
2026-10-05 13:39   ` Andrew Cooper
2026-08-28  7:02 ` [PATCH 06/12] kexec: machine_reboot_kexec() doesn't return Jan Beulich
2026-08-28  9:55   ` Nicola Vetrini
2026-10-05 10:38     ` Dmytro Prokopchuk1 [this message]
2026-10-05 13:31   ` Andrew Cooper
2026-08-28  7:03 ` [PATCH 07/12] altp2m: address Misra 2.1 rule violation Jan Beulich
2026-08-31  1:14   ` Stefano Stabellini
2026-08-28  7:04 ` [PATCH 08/12] Arm/GIC: add noreturn in a few more places Jan Beulich
2026-08-31  1:21   ` Stefano Stabellini
2026-08-28  7:04 ` [PATCH 09/12] Eclair: deviate BUILD_ERROR() wrt rule 2.1 and introduce variants Jan Beulich
2026-08-29 14:04   ` Nicola Vetrini
2026-09-01  6:36     ` Jan Beulich
2026-08-31  1:30   ` Stefano Stabellini
2026-08-28  7:05 ` [PATCH 10/12] PCI/physdev: address Misra 2.1 rule violation Jan Beulich
2026-08-31  1:30   ` Stefano Stabellini
2026-08-28  7:05 ` [PATCH 11/12] x86/HVM: address Misra 2.1 rule violations Jan Beulich
2026-09-10  7:54   ` Roger Pau Monné
2026-08-28  7:06 ` [PATCH 12/12] x86/nSVM: address Misra 2.1 rule violation Jan Beulich
2026-09-10  7:44   ` Roger Pau Monné
2026-09-10  8:42     ` Jan Beulich

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=a016bb1f-3178-404f-8ace-a33575a2de2d@epam.com \
    --to=dmytro_prokopchuk1@epam.com \
    --cc=xen-devel@lists.xenproject.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 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.