mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
sym(4): Add __diagused to nseg of getbaddrcb()
The parameter is only used when compiling with INVARIANTS.
This commit is contained in:
parent
4318843250
commit
ae6d496358
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue