From nobody Tue Aug 16 10:46:35 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M6SWJ2yPbz4YkCP; Tue, 16 Aug 2022 10:46:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M6SWJ1611z424k; Tue, 16 Aug 2022 10:46:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660646796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oZLd1VYnl2qTQDKN3shCDuDYCsI/uRgMelfXZfRiTiE=; b=Rh1WULbgh958h4BxiE0XE+4hKBMq8NXjJ4uHW6SfyTEJFLvuKBLYzabfYRxQAGeGdUEHRd PSETHU1U4CLeNJAiRYPc1VzJA3JfeF7NpvlgA7EzW2y/zqeazsxNlXWoKHGAtSWmXsUmE1 9ktc0HlEuUQibWXQ1Hf8srsJeQ3uTq+zhnYGZrfcqierFuktMKqiqQlW36DjEq98EBzf5V cX07XoNzirNtIX752JxpGgBNMBdk7AHSQRJrtLgy+BIAflYUKSiLdxwTlJzvrrPzUYodV2 HxFmKWnp4bzII+NN1uAZkGnj9Syoeg250GUc5bX1T7liU3sRuPl7WL/mf/mj2Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M6SWJ08SSz15nl; Tue, 16 Aug 2022 10:46:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27GAkZLL080884; Tue, 16 Aug 2022 10:46:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27GAkZHj080883; Tue, 16 Aug 2022 10:46:35 GMT (envelope-from git) Date: Tue, 16 Aug 2022 10:46:35 GMT Message-Id: <202208161046.27GAkZHj080883@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: eb9a1f9c687d - main - vfs: plug dead store in vn_io_fault1 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb9a1f9c687d0df1554a5699a6895cee62209c87 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660646796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oZLd1VYnl2qTQDKN3shCDuDYCsI/uRgMelfXZfRiTiE=; b=pnnG2XoXCpPXl2GOwiMkycHX4DNdV5sLovQsDwiU549EQUTNBdNmQiTlFj25GHL4S8xRi7 BBclgrL60up4jeT4w6oYPHgBKWr5GYa0kZUmk3UvUASrkeNQUtKEbVS9C64AW2ZNrQV8yi yHaE45l2TqpKqlRetLYS2eBBNUnz7D/VW76va7P7YJ3IDJltNMiWxv9q77TPc4X1NBkelW 5v8qVeUf+mwhbAymrCupBh7r2rNnhd8Xwifzkaxwx+7gbdCm+2QsShs7xZaWfEqYi7/vAg 9Sbp8HdUOiRoD1hIDS+P8UyXx02MfbwrcKUjtovltF6uSM/l0rB4zM5epNm0HQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660646796; a=rsa-sha256; cv=none; b=fEU/b8t/ScLeBXgVEgYywjigD4n1nZ1eAVp8lhOhHRSM3K/GPFend9G3/i7qPHNSaMHOsO r5i4gU0WHuraOQg0AiRT1DzSpMw8sU168UMKKSPYb+5VjDOGAMPi6/arCxHrEu/1BAzUk/ ruYa3rajWtWHDrvTUbw28ddgZy3stCG1ZuiHJUm1mm9C3cbbRk5AVWWtHfaE7jKCGUfp8W sc4luyIzI1vegdKnV/NKtTrCkvRXtKdL1CECRux8x8tdPR46vcxH4OqRlnFICmfxV2F003 yCIyL/wV3IRxJ3ucsr0nd6Uxnc6/iipQ3of3rh9XFRpQaI1bdpxKig2ntEcCNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=eb9a1f9c687d0df1554a5699a6895cee62209c87 commit eb9a1f9c687d0df1554a5699a6895cee62209c87 Author: Mateusz Guzik AuthorDate: 2022-08-16 10:44:31 +0000 Commit: Mateusz Guzik CommitDate: 2022-08-16 10:46:20 +0000 vfs: plug dead store in vn_io_fault1 Reported by: clang --analyze --- sys/kern/vfs_vnops.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 29851dcfaaa2..60a1bd7302a2 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1393,7 +1393,6 @@ vn_io_fault1(struct vnode *vp, struct uio *uio, struct vn_io_fault_args *args, error = EFAULT; break; } - cnt = atop(end - trunc_page(addr)); /* * A perfectly misaligned address and length could cause * both the start and the end of the chunk to use partial