• [$] Warning about WARN_ON()

    From LWN.net@1337:1/100 to All on Thu Apr 18 15:30:05 2024
    [$] Warning about WARN_ON()

    Date:
    Thu, 18 Apr 2024 14:24:50 +0000

    Description:
    Kernel developers, like conscientious developers for many projects, will
    often include checks in the code for conditions that are never expected to occur, but which would indicate a serious problem should that expectation
    turn out to be incorrect. For years, developers have been encouraged (to
    put it politely) to avoid using assertions that crash the machine for such conditions unless there is truly no alternative. Increasingly, though, use
    of the kernel's WARN_ON() family of macros, which developers were
    told to use instead, is also being discouraged.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/969923/


    --- Mystic BBS v1.12 A47 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)