From nobody Sat Jan 06 19:25:28 2024 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 4T6qzY3LXvz571HM; Sat, 6 Jan 2024 19:25:29 +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 4T6qzY0lj4z3wnP; Sat, 6 Jan 2024 19:25:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704569129; 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=7MieNWwvZS18TeBAZ6XLTNTroTTnxroAlffX3vi0BQg=; b=pvSG3C8rKrMBNNDrPytxr3ZKK0la2XYNzcxbXZ9JWzYja/GfJQHGlnIQkhlm4rmqC7cZoh jOkAGqVcwRsxY88r06aJ+RNaJ9HITCP1gMGkkkxg0lCaZReErIFSqZebI0vvvVA01M8hIc kDryRlwSQ892/OwEVHwmH7vE53O4gYp8hT39LEXS23nqfgjWy004x3KFShVHFWnpL61GMq FjvH9jPMjShAPUjjj2efw5oJEtmxDLfZWr8Sq0sETc38N3ClawwXwwa0GwDdySDehq0IK5 +VgcPUGqdnueE1qFhcUsFCCZoxO9o32G+0yE4LMKXDgxBsqmMRlHDvOmCa673w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704569129; 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=7MieNWwvZS18TeBAZ6XLTNTroTTnxroAlffX3vi0BQg=; b=gC2FRjQau53sn5UE6meYE/dZmPjZ/feOL911+ECAxpu+fNnFJuSJ/P7mxc/baGwIIUEWyV I271NXlvFTkFZycSuBH0a2Ea3yj+QbRstIbtWEu4+kKreBerRi2gfvuoNu6xbnN8ejPuDL AKjkpuvI3KQvFP5zN8NOZVPk/rt4xIDJml04XTcElXFR2AoT0LKVBfsYIcJ6V3QkksvLff XxyhtaXtBOqoqcHOLRgAQJl6HWMO4B27Fo+j1IStM2aZZvfs7k226kGEaw8F7CqYcmjnKn XSk6Ca8IsLPeLmVAaU20g7dmJScyYb0Fta1qu6WGW6BM5G7Q9o6BmwYx9/p5QQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704569129; a=rsa-sha256; cv=none; b=jIwNli8F8VVGjnIysqyAiJc2fjD8ssBJv4cPz06cNHaFBWXSoqMRGFTWRq2o3VC9WKfz+m 47xjPzpIXXkrhvYFWyrKOI8PyBIMAdWHnW4jxphbSy2Peug8glYAHUuuH2/VVEPZr9VTM0 Js6MX2tV3nXE4Xao3KZYJoCPB9fLxf1DoH+wbaNwRPsZ4mAMFYN71LnkcLxNIvL01F9FG+ W6mcO4kIuAz4gpMFpRv9Ng80Xo6MAd3sVwXktHyThREFbvwdA9xvBolR6B6++Ni+AAZlID jnG0Kv2OD5YXPpR0POUUzT5S9IR7uOrAqU2ueGInXTgpolk0i5YC/s59qDlh5A== 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 4T6qzX6yq7ztXC; Sat, 6 Jan 2024 19:25:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 406JPSUa065040; Sat, 6 Jan 2024 19:25:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 406JPSgp065037; Sat, 6 Jan 2024 19:25:28 GMT (envelope-from git) Date: Sat, 6 Jan 2024 19:25:28 GMT Message-Id: <202401061925.406JPSgp065037@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Marius Strobl Subject: git: e7550f26f306 - stable/13 - sym(4): Add __diagused to nseg of getbaddrcb() 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: marius X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e7550f26f306730304b9c94f4936076be6357e99 Auto-Submitted: auto-generated The branch stable/13 has been updated by marius: URL: https://cgit.FreeBSD.org/src/commit/?id=e7550f26f306730304b9c94f4936076be6357e99 commit e7550f26f306730304b9c94f4936076be6357e99 Author: Marius Strobl AuthorDate: 2023-08-18 14:29:10 +0000 Commit: Marius Strobl CommitDate: 2024-01-05 22:48:34 +0000 sym(4): Add __diagused to nseg of getbaddrcb() The parameter is only used when compiling with INVARIANTS. (cherry picked from commit ae6d4963589418f2116ddc8cabcf93dd2f4bbf3b) --- sys/dev/sym/sym_hipd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index 50c52f46dca6..8517d79124b0 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -569,7 +569,8 @@ static void sym_mfree(void *ptr, int size, char *name) * BUS handle. A reverse table (hashed) is maintained for virtual * to BUS address translation. */ -static void getbaddrcb(void *arg, bus_dma_segment_t *segs, int nseg, int error) +static void getbaddrcb(void *arg, bus_dma_segment_t *segs, int nseg __diagused, + int error) { bus_addr_t *baddr;