Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp476852lqh; Thu, 28 Mar 2024 07:31:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlxL5ALBR+HlMGGT5a0gcF3yArJScPT8rGN1QaIfmTstRq/RWprGUEYx0/3AXp3IyJL+pamGQiFqFi5ZaoDLon+LfiadDyouT6ohEM2A== X-Google-Smtp-Source: AGHT+IEYX50a7GZ7miPDBhux4eMPgw+lFAcmVygKXy6a+8fVw3cuGQzlFdFIxzxjLOvNbSMd7LhM X-Received: by 2002:a17:906:2c4b:b0:a4a:20df:e032 with SMTP id f11-20020a1709062c4b00b00a4a20dfe032mr1626419ejh.66.1711636283456; Thu, 28 Mar 2024 07:31:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711636283; cv=pass; d=google.com; s=arc-20160816; b=lQ3DXAoixVlXxZKBNSCYwCGKezOsfBOxCRbuTlFWtRm5agTM4M6O0AX+lfCPGhxjB8 VBm0iZlERA/4H5Rs0KJeeyocYI7YMyC9tbEPf5MNIwS3IGclkpAs0W+GNw6LFy5EExJx MT08ZvRARhSv9j4PRM9s+eeyoYBNB4fORtRa1usLbAjONlgz7w9DabyaqQB41wkyS6Fb n5+f5jsu1/foWWFZ/4RFsqh6a9xihk+7d/QbYh65CUK8tTNTWWHPXpDASVO3TDDK+a3T pzkghnJ/nxaGnNtMX7sbkH89Hj76dNW794Yjxm6JpzpJcC1zhRnB5/xnrBfOX+K/HhGJ W6sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=5L6DqwuUaLYAo8kwwzqjy/3qUZ37Q2bwADOKOPODaN0=; fh=kQ+Mqdxvap/AhJCVXu1vvMkcEfgMk69oBD4zZoVcD88=; b=hPsxA4/mG1Bds7PbSMGxNHifL37xlgt7+rObDubrRVrkM5gsIeSuClKXtefEKudDZs 0BBWtkLPcS+C1I1QyfWbrOVq/grTC3BtR7bYZrnDDLobcZLKJ/khh5WnttAxp+i1qtX+ DVEkkpXhWjwT7m62xL1tnCQGy2hmejxQU+HxIPZsH4lfor0MLsWOAiUL4gM9D9LkM6aE 7g7y++S5SqrU/h6A/5O5ijh5b5eavUmzJGWzP2sxo6QaUF6N9XhlwlnAGnCShTTLmfdM yW66RXqwuuTI6pJwmpNmDdlrQkWQqUkp8LftE4pWgqjvvZC4mNjWKapIX0O7xPqPamPQ SqNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eWM+Qp30; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k3-20020a17090632c300b00a46b676b02bsi777474ejk.459.2024.03.28.07.31.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 07:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eWM+Qp30; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0C3951F261F5 for ; Thu, 28 Mar 2024 14:31:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 157CE12BF08; Thu, 28 Mar 2024 14:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eWM+Qp30" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10F081879; Thu, 28 Mar 2024 14:31:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711636265; cv=none; b=TsaSuZaa+mOPb4gMTrYw6L6GZvvkXyWSJl1F6oLiN/d9cyei/sqjeLivDoKuLEArbftgkr8kn/4RC8rMN9pSq8Gslumnb5ALq7gqV9IAkh6ac+f9ubVSGA5egeD7c36qrt3LE6ob/nVFyIDbCG9PrsXhJb8Ue7u7TlApyLr1VNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711636265; c=relaxed/simple; bh=zN2hzijZlAwA7dSIUuqXqTXuAGGw3rihlUXROhzown4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XSfHzXv59ixjGGMOCuKiEcRfQH5Wz0iPodm6syal3cKs1ibOcBB8VQ6aE2+tAAVPsfPQQBTyRyb/qoda2KTCVttB0xw3cB816Y4UGNxWeP4Km2wwe+2WJvcSsEZOcPsQad/YfFPQWfacVFhDbYmSmLNrUyj97Cy6uzU917PbO2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eWM+Qp30; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7141C433C7; Thu, 28 Mar 2024 14:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711636264; bh=zN2hzijZlAwA7dSIUuqXqTXuAGGw3rihlUXROhzown4=; h=From:To:Cc:Subject:Date:From; b=eWM+Qp30VXj9Cmh0LnGCxoeRKFCdiRG/+7cYiw3/d1A2+4+cFEwZTeR0JCmdB7dCq BJ9rIQbF9IBEI+soObC424HP7laoiCA3/oi1O9qP9rBITnPfxuSYeV5KRvg9hYcRab e/dCX3l7xvE+Crt9nLuvyn+RK8JuQn+i+0gl/X6RqKrS31M7lA4cVVAcZLH+2tD70I 3HfxG2oBSEgx+79CZh8PlNRuEJmIOG2T+nm5DpqItFA2gaY6b7ltr3jg7UjRUmiCnX fBIiKt6tGKRHDPmTgbO18UpcTP5WlsP5+HLng5MSKm27q042WFMvRohaMfXHDUBt2+ CV0uOkwqjgK7A== From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Ilya Dryomov , Dongsheng Yang , Jens Axboe , Jason Gunthorpe , Leon Romanovsky , Alasdair Kergon , Mike Snitzer , Mikulas Patocka , dm-devel@lists.linux.dev, Saeed Mahameed , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Xiubo Li , Jeff Layton , Ryusuke Konishi , Dmitry Vyukov , Andrey Konovalov , David Ahern , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Kees Cook , "Gustavo A. R. Silva" , Tariq Toukan , ceph-devel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-nilfs@vger.kernel.org, kasan-dev@googlegroups.com, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 0/9] address remaining -Wtautological-constant-out-of-range-compare Date: Thu, 28 Mar 2024 15:30:38 +0100 Message-Id: <20240328143051.1069575-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann 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 Cc: Dongsheng Yang Cc: Jens Axboe Cc: Jason Gunthorpe Cc: Leon Romanovsky Cc: Alasdair Kergon Cc: Mike Snitzer Cc: Mikulas Patocka Cc: dm-devel@lists.linux.dev Cc: Saeed Mahameed Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Xiubo Li Cc: Jeff Layton Cc: Ryusuke Konishi Cc: Dmitry Vyukov Cc: Andrey Konovalov Cc: David Ahern Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Nicolas Schier Cc: Nick Desaulniers Cc: Bill Wendling Cc: Justin Stitt Cc: Kees Cook Cc: "Gustavo A. R. Silva" Cc: Arnd Bergmann Cc: Tariq Toukan Cc: ceph-devel@vger.kernel.org Cc: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-rdma@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-nilfs@vger.kernel.org Cc: kasan-dev@googlegroups.com Cc: linux-kbuild@vger.kernel.org Cc: llvm@lists.linux.dev