From nobody Wed Apr 13 23:09:10 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 53F2D1B3FC6E; Wed, 13 Apr 2022 23:09:11 +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 4Kdyvp6zPpz4lND; Wed, 13 Apr 2022 23:09:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891351; 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=K1na/mpVXJrSWScKpFUvWFDLpR7//itMlVxE40EkMNA=; b=r6nirRwxoq37+4lOn4A+UEGxlhhFwEEyZWVMEcW2FjHo3sjqhS29YyC6l4RSHuZmowsW2W nj3zTOR0zJrIpqh3DC1r+Xz6Ma3Pin2V7CiuZvkxW6mKlK++Xq8UURfPO5l+aAjrICUY4r zMHjTq35x5aunfMCIM5q5Rz43IKNjwScbnNAXyCrYWX3xoAdNCI3kxlH5POkN8aZxuMdMX KpWZTt07SxkTPckK35cqfzJZrnoiaYmopB8ln43EpSBnlxRSLbKXLJl3TiYwwk8TuLf1mT VmQn0A7Si12YrpiE8xkdKrjMRmbg36ZnuXe+43RBve3V7V05sGOyFDyGWwOQWA== 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 A249014EEE; Wed, 13 Apr 2022 23:09:10 +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 23DN9AUj074037; Wed, 13 Apr 2022 23:09:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9AjD074036; Wed, 13 Apr 2022 23:09:10 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:10 GMT Message-Id: <202204132309.23DN9AjD074036@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 2174f0f2f253 - main - net/route: Use __diagused for variables only used in KASSERT(). 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2174f0f2f25310308f92743da849fee32c65db8a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891351; 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=K1na/mpVXJrSWScKpFUvWFDLpR7//itMlVxE40EkMNA=; b=aEe2CDFdQ6B550VNJ+c4jasbtbkLJjg5Llqt042oWArcAj8C771yGrcX7WJc1LnKUQ7diC oRUStV/58lH2xI6sZamaoXepO8iHVx2smCdV/Jh+GqD4CeZvFSP5l5ydnW/lmXf6fm41pk eD66E68Swbv+cdIjIY9QSn9HcUD6FkfXalaGwMmv6HcH9yWnqn+CWGa0aH4KUJWNxsjZfB QfPcIWF+C9W7w/0v6pZRKMpcp+tJggUjYznxCsyLcF9RuhyncJ62V10jwpnVaYE3oqlQy+ 1v8SkaL/v/HqzMsWmkCQC/bO5w6nQvd7bQZwQVGHY7EHyiwW0/CrS1/rbStHkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891351; a=rsa-sha256; cv=none; b=DaPbS2BKDngnPHvusOHy8jfKpnL2rLI+ErLjr5YzyNV/xRHcVofcFjmXcyx5M+BsE0SSWo 9VnFsIFZdaxqj/EXu7y1Rlqhn3XpP9xLgUg8rz1poDIlIbbyLIxNTOXPNeydDpAOq62fgp 9iyYpV+7FUw/XV2KDZMTN/tdWSeEO6d75Kywc7lZZBhxh9D+bqUAObMT6cMIxmGpxu+/yk Amzmef5hHiJnxUJLU8jk1Le6YaBypmOuEVVBh/QExnjXDI4jV62La/dGZff738Gx++5CrF f3Cr1fe8FUC4NzpBcePQu5CY5xvUj1q3XYgCokSgv4fwiIlWPnyA7p61xvYYrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2174f0f2f25310308f92743da849fee32c65db8a commit 2174f0f2f25310308f92743da849fee32c65db8a Author: John Baldwin AuthorDate: 2022-04-13 23:08:19 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:19 +0000 net/route: Use __diagused for variables only used in KASSERT(). --- sys/net/route/nhgrp_ctl.c | 2 +- sys/net/route/nhop_ctl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/route/nhgrp_ctl.c b/sys/net/route/nhgrp_ctl.c index 6a3f853e073d..fc9e67c21fe9 100644 --- a/sys/net/route/nhgrp_ctl.c +++ b/sys/net/route/nhgrp_ctl.c @@ -295,7 +295,7 @@ void nhgrp_ref_object(struct nhgrp_object *nhg) { struct nhgrp_priv *nhg_priv; - u_int old; + u_int old __diagused; nhg_priv = NHGRP_PRIV(nhg); old = refcount_acquire(&nhg_priv->nhg_refcount); diff --git a/sys/net/route/nhop_ctl.c b/sys/net/route/nhop_ctl.c index 6a82391307f1..785244e5e964 100644 --- a/sys/net/route/nhop_ctl.c +++ b/sys/net/route/nhop_ctl.c @@ -631,7 +631,7 @@ destroy_nhop_epoch(epoch_context_t ctx) void nhop_ref_object(struct nhop_object *nh) { - u_int old; + u_int old __diagused; old = refcount_acquire(&nh->nh_priv->nh_refcnt); KASSERT(old > 0, ("%s: nhop object %p has 0 refs", __func__, nh));