lkml.org 
[lkml]   [2023]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 03/24] arm/cpu: Make sure arch_cpu_idle_dead() doesn't return
    On Mon, Feb 13, 2023 at 11:05:37PM -0800, Josh Poimboeuf wrote:
    > arch_cpu_idle_dead() doesn't return. Make that more explicit with a
    > BUG().
    >
    > BUG() is preferable to unreachable() because BUG() is a more explicit
    > failure mode and avoids undefined behavior like falling off the edge of
    > the function into whatever code happens to be next.

    This is silly. Just mark the function __noreturn and be done with it.
    If the CPU ever executes code past the "b" instruction, it's already
    really broken that the extra instructions that BUG() gives will be
    meaningless.

    This patch does nothing except add yet more bloat the kernel.

    Sorry, but NAK.

    --
    RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
    FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

    \
     
     \ /
      Last update: 2023-03-27 00:21    [W:4.669 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site