From nobody Thu Dec 16 03:04:23 2021 X-Original-To: dev-commits-src-all@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 C8CB818D910E; Thu, 16 Dec 2021 03:04:24 +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 4JDxm81XLcz4XFf; Thu, 16 Dec 2021 03:04:24 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 E3EE028701; Thu, 16 Dec 2021 03:04:23 +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 1BG34NPh055882; Thu, 16 Dec 2021 03:04:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BG34NWc055881; Thu, 16 Dec 2021 03:04:23 GMT (envelope-from git) Date: Thu, 16 Dec 2021 03:04:23 GMT Message-Id: <202112160304.1BG34NWc055881@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 85575132fe13 - main - stand/zfs: Mark pcount as unused List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 85575132fe13a630467b9afe34cd245885d9b8a4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639623864; 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=o98Cl7YlBvNYJQoVHOE2ZOyxakDjGFvNJxn0W+MAmdU=; b=ECdsuy06nxQKf529B6NbBlJ95OCPTMCyHMxG8Ztvk/wmm0rZVRd4XIRj2OJX9n6C7Q+1p2 +722DAsiA7XQLpy+SezbmOMmwbMQv2nQkIBxGTH45jUtK+hPHz5EWGbe7/muvaaHeyYeGS kyz3zLuRaYgPvti6olChGakjUx7perX2hlTZeo4FPeO7zVkD8JSRCBeVpHQqhR6adVEjmg 6vJ7SjStlCoJ17MVs1/6fQ72+JVutfmzf2SLUuwZEPpax4XsJhWjta68USGhD89vrwEYZO oSGECc9Ecjog9jvG4uY7qT+1yjhljLMo1g2RACNp7yhs5D8KVVr9c4hmnd88GQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639623864; a=rsa-sha256; cv=none; b=N60rwIbnYD4ZxllhAbq+chCfgBbbdK0JY5FP959XOV6SObYLUTSW0c82ce4ASo9Auz6It4 jUvpBIFActjaud8Au1o2yz8HwTcn3fEEoLbyeODZEyUwq2LVrmKoYyb8xNjRrQK50BXgFr iLG0sBqEE2Y2YVDXIMp3EktG2cgGn5Z4obuGwzllwBUF9eh7RxNKgQse4WTKLYy2V0M9pX l97Ap8oIJ5G1RpbRC9HDEhnQrAx0E+Fh7hnQuZ+urNwzBOxuLgF62v+l9Z2mMRgvsWC0F6 4qCBtdrtC+7JGserVcRt88e1QzZZwxzVp1EgcBrrsSfH935Dv6IEqedBA6ENng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=85575132fe13a630467b9afe34cd245885d9b8a4 commit 85575132fe13a630467b9afe34cd245885d9b8a4 Author: Warner Losh AuthorDate: 2021-12-16 02:47:48 +0000 Commit: Warner Losh CommitDate: 2021-12-16 02:47:48 +0000 stand/zfs: Mark pcount as unused pcount is unused in the sense that it's set but never used except in an assert. But asserts are compiled out always, so just mark it as unused. Sponsored by: Netflix --- sys/cddl/boot/zfs/zfssubr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/cddl/boot/zfs/zfssubr.c b/sys/cddl/boot/zfs/zfssubr.c index dd22f268bd20..2603a69d6f9f 100644 --- a/sys/cddl/boot/zfs/zfssubr.c +++ b/sys/cddl/boot/zfs/zfssubr.c @@ -527,7 +527,8 @@ vdev_raidz_exp2(uint8_t a, int exp) static void vdev_raidz_generate_parity_p(raidz_map_t *rm) { - uint64_t *p, *src, pcount, ccount, i; + uint64_t *p, *src, ccount, i; + uint64_t pcount __unused; int c; pcount = rm->rm_col[VDEV_RAIDZ_P].rc_size / sizeof (src[0]);