[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230818192850.123e8331@kernel.org>
Date: Fri, 18 Aug 2023 19:28:50 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>
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 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)
~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
Can we shut this up somehow? Or don't care?
Powered by blists - more mailing lists