From nobody Fri Aug 18 14:33:41 2023 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 4RS49x6yWhz4qbvY; Fri, 18 Aug 2023 14:33:41 +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 4RS49x6SdTz4fRf; Fri, 18 Aug 2023 14:33:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692369221; 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=IxhDkq7JxPMrCBApYKQDXMAIrmE54yJT3GXGoEX70yI=; b=gGRfPlaP3rd1JJrl30cRcOlarKYc5qCdsyU8ZPBQUjnbzapxeaq+98fm12DOc35FHqjeh8 o5YFm1a3mBJnEREJFfojDr7du4uw87I3jq+t3rNf3yClUkEjqzfywiKX7bcu7Xjocp9ubq V1jpc8+7EWdQ8jlNtVZmzgZ1/P9YHM5+oAjbuwCsQWUJw7E2EM5CscUSfgG+RmCRwro+CH ICR71n75hVWNs6ua41z3xNtsYRAzwYysS7z6vIhOMxbMC+EhBi+CgZiNfK5ctiNGfpNOKx wN8n7IgDMrzigRXM0FR4CftkcckyfGqadGRDtAPdmDMsXBljobdtRiLRCCAUPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692369221; 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=IxhDkq7JxPMrCBApYKQDXMAIrmE54yJT3GXGoEX70yI=; b=mUpu/l7QLWBn9hW3MOJMKp9qXHF05nLo+Siphlv8C6YUXAdAbdNmI4Zaw79kOAER9Ydhnv dc+GQRQg7JScDfwxLIy85v3bBHmpTnEUjhPH3KW96TJgqW5uNpjsaN7aVdsFBn+ZA8QrlI MxhktQtateELZshfYs/sLUW8UcV+ATgkTIuQWNC3MRoiX/nM8JBTldg2GLx3fHZe7ieWGV 9nSp0aK3B5VM1bNzG08j8htbgqz66hqJIa3PZ7MydFCxwi2VIY4mQuVztFiEQ1YPLM0T8e y2Js3ETtfqR9us6lAWj8cHQBBvHMOKfYcezz86JiENbwZToJsdGbD3pgEi7P6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692369221; a=rsa-sha256; cv=none; b=Ni6EoauheBuqDnmXV2qSRNzSN5gQlGmq/iBMGvU241iytLO/AyOKcV+/YT60XIzqySVyvZ XsJ1KTbMKi2USYEv0jAMTlK0yL14SQNuurkrBZ4dDkdC9fRdlYD7eElhDtfDm6Bf+Kuskw qX6wZDSjaJG3yZQ0DZKGlPFxeJzz9NbWxVAhGLXFOgQdqWIO8g6DN07ktz2QvramUFRUIh T7GOUAnPbIai67z+6HNGKgoaTH/A2yDQarfeKblcqTp/XFaUB6IRZ6yCrLhC13QnSX/8nd 85W40ELC9aqgOhjnQabW3SRh/HDZu0BJ3LRY6JiOLadELfPv5pSh8P2w1+DAFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RS49x5XbWz4sd; Fri, 18 Aug 2023 14:33:41 +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 37IEXfBw050810; Fri, 18 Aug 2023 14:33:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37IEXffs050807; Fri, 18 Aug 2023 14:33:41 GMT (envelope-from git) Date: Fri, 18 Aug 2023 14:33:41 GMT Message-Id: <202308181433.37IEXffs050807@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Marius Strobl Subject: git: ae6d49635894 - main - 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/main X-Git-Reftype: branch X-Git-Commit: ae6d4963589418f2116ddc8cabcf93dd2f4bbf3b Auto-Submitted: auto-generated The branch main has been updated by marius: URL: https://cgit.FreeBSD.org/src/commit/?id=ae6d4963589418f2116ddc8cabcf93dd2f4bbf3b commit ae6d4963589418f2116ddc8cabcf93dd2f4bbf3b Author: Marius Strobl AuthorDate: 2023-08-18 14:29:10 +0000 Commit: Marius Strobl CommitDate: 2023-08-18 14:33:27 +0000 sym(4): Add __diagused to nseg of getbaddrcb() The parameter is only used when compiling with INVARIANTS. --- 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 c8cdcacc3f81..fa65d544e17d 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;