git: e7550f26f306 - stable/13 - sym(4): Add __diagused to nseg of getbaddrcb()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Jan 2024 19:25:28 UTC
The branch stable/13 has been updated by marius:
URL: https://cgit.FreeBSD.org/src/commit/?id=e7550f26f306730304b9c94f4936076be6357e99
commit e7550f26f306730304b9c94f4936076be6357e99
Author: Marius Strobl <marius@FreeBSD.org>
AuthorDate: 2023-08-18 14:29:10 +0000
Commit: Marius Strobl <marius@FreeBSD.org>
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;