[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89i+sVXF-uam7Q+FmQDS_gQw0KROF_P+8UFVzwOcudobvcg@mail.gmail.com>
Date: Sat, 19 Aug 2023 06:02:45 +0200
From: Eric Dumazet <edumazet@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: "David S . Miller" <davem@...emloft.net>, Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
eric.dumazet@...il.com
Subject: Re: [PATCH net-next] net: annotate data-races around sk->sk_lingertime
On Sat, Aug 19, 2023 at 5:04 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Sat, 19 Aug 2023 05:03:47 +0200 Eric Dumazet wrote:
> > > net/core/sock.c:1238:14: warning: result of comparison of constant 36893488147419103 with expression of type 'unsigned int' is always false [-Wtautological-constant-out-of-range-compare]
> > > if (t_sec >= MAX_SCHEDULE_TIMEOUT / HZ)
> > > ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> >
> > Ah... I thought I was using clang.... Let me check again.
>
> Could be a W=1 warning.
Indeed, I will use an "unsigned long t_sec" to remove the warning,
(compiler also removes the dead branch in 64bit builds)
Thanks.
Powered by blists - more mailing lists