lkml.org 
[lkml]   [2020]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 000/141] Fix fall-through warnings for Clang
    On Sun, Nov 22, 2020 at 7:22 PM James Bottomley
    <James.Bottomley@hansenpartnership.com> wrote:
    >
    > Well, it's a problem in an error leg, sure, but it's not a really
    > compelling reason for a 141 patch series, is it? All that fixing this
    > error will do is get the driver to print "oh dear there's a problem"
    > under four more conditions than it previously did.
    >
    > We've been at this for three years now with nearly a thousand patches,
    > firstly marking all the fall throughs with /* fall through */ and later
    > changing it to fallthrough. At some point we do have to ask if the
    > effort is commensurate with the protection afforded. Please tell me
    > our reward for all this effort isn't a single missing error print.

    It isn't that much effort, isn't it? Plus we need to take into account
    the future mistakes that it might prevent, too. So even if there were
    zero problems found so far, it is still a positive change.

    I would agree if these changes were high risk, though; but they are
    almost trivial.

    Cheers,
    Miguel

    \
     
     \ /
      Last update: 2020-11-22 21:42    [W:4.145 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site