[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89i+2_exCdN=qMGJ=cYmpx9P58am98nW5x4fju1PpsMFW_Q@mail.gmail.com>
Date: Sat, 19 Aug 2023 05:03:47 +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 4:28 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Fri, 18 Aug 2023 02:11:32 +0000 Eric Dumazet wrote:
> > Remove preprocessor logic using BITS_PER_LONG, compilers
> > are smart enough to figure this by themselves.
>
> clang does complain that we're basically comparing an in to a MAX_LONG:
>
> 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.
Powered by blists - more mailing lists