Subject: [PATCH 0/9] address remaining -Wtautological-constant-out-of-range-compare

From: Arnd Bergmann <[email-masked]>
Date: Thu, 28 Mar 2024 15:30:38 +0100

From: Arnd Bergmann <[email-masked]>

The warning option was introduced a few years ago but left disabled
by default. All of the actual bugs that this has found have been
fixed in the meantime, and this series should address the remaining
false-positives, as tested on arm/arm64/x86 randconfigs as well as
allmodconfig builds for all architectures supported by clang.

Please apply the patches individually to subsystem maintainer trees.

      Arnd

Arnd Bergmann (9):
  dm integrity: fix out-of-range warning
  libceph: avoid clang out-of-range warning
  rbd: avoid out-of-range warning
  kcov: avoid clang out-of-range warning
  ipv4: tcp_output: avoid warning about NET_ADD_STATS
  nilfs2: fix out-of-range warning
  infiniband: uverbs: avoid out-of-range warnings
  mlx5: stop warning for 64KB pages
  kbuild: enable tautological-constant-out-of-range-compare

 drivers/block/rbd.c                                    | 2 +-
 drivers/infiniband/core/uverbs_ioctl.c                 | 4 ++--
 drivers/md/dm-integrity.c                              | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c | 6 ++++--
 fs/ceph/snap.c                                         | 2 +-
 fs/nilfs2/ioctl.c                                      | 2 +-
 kernel/kcov.c                                          | 3 ++-
 net/ceph/osdmap.c                                      | 4 ++--
 net/ipv4/tcp_output.c                                  | 2 +-
 scripts/Makefile.extrawarn                             | 1 -
 10 files changed, 15 insertions(+), 13 deletions(-)

-- 
2.39.2

Cc: Ilya Dryomov <[email-masked]>
Cc: Dongsheng Yang <[email-masked]>
Cc: Jens Axboe <[email-masked]>
Cc: Jason Gunthorpe <[email-masked]>
Cc: Leon Romanovsky <[email-masked]>
Cc: Alasdair Kergon <[email-masked]>
Cc: Mike Snitzer <[email-masked]>
Cc: Mikulas Patocka <[email-masked]>
Cc: [email-masked]
Cc: Saeed Mahameed <[email-masked]>
Cc: "David S. Miller" <[email-masked]>
Cc: Eric Dumazet <[email-masked]>
Cc: Jakub Kicinski <[email-masked]>
Cc: Paolo Abeni <[email-masked]>
Cc: Xiubo Li <[email-masked]>
Cc: Jeff Layton <[email-masked]>
Cc: Ryusuke Konishi <[email-masked]>
Cc: Dmitry Vyukov <[email-masked]>
Cc: Andrey Konovalov <[email-masked]>
Cc: David Ahern <[email-masked]>
Cc: Masahiro Yamada <[email-masked]>
Cc: Nathan Chancellor <[email-masked]>
Cc: Nicolas Schier <[email-masked]>
Cc: Nick Desaulniers <[email-masked]>
Cc: Bill Wendling <[email-masked]>
Cc: Justin Stitt <[email-masked]>
Cc: Kees Cook <[email-masked]>
Cc: "Gustavo A. R. Silva" <[email-masked]>
Cc: Arnd Bergmann <[email-masked]>
Cc: Tariq Toukan <[email-masked]>
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]
Cc: [email-masked]