sym(4): Add __diagused to nseg of getbaddrcb()

The parameter is only used when compiling with INVARIANTS.
This commit is contained in:
Marius Strobl 2023-08-18 16:29:10 +02:00
parent 4318843250
commit ae6d496358

View file

@ -569,7 +569,8 @@ static void sym_mfree(void *ptr, int size, char *name)
* BUS handle. A reverse table (hashed) is maintained for virtual * BUS handle. A reverse table (hashed) is maintained for virtual
* to BUS address translation. * 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; bus_addr_t *baddr;