git: ae6d49635894 - main - sym(4): Add __diagused to nseg of getbaddrcb()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 14:33:41 UTC
The branch main has been updated by marius: URL: https://cgit.FreeBSD.org/src/commit/?id=ae6d4963589418f2116ddc8cabcf93dd2f4bbf3b commit ae6d4963589418f2116ddc8cabcf93dd2f4bbf3b Author: Marius Strobl <marius@FreeBSD.org> AuthorDate: 2023-08-18 14:29:10 +0000 Commit: Marius Strobl <marius@FreeBSD.org> 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;