Eliminate a "cast discards qualifiers" warning when building with gcc.

This commit is contained in:
ian 2014-12-21 21:24:19 +00:00
parent 147cc19bb7
commit 08314f3203

View File

@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/cdefs.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/malloc.h>
@ -156,7 +157,7 @@ vq_getchain(uint32_t offs, struct vqueue_info *vq,
break;
next = be16toh(vp->next);
}
paddr_unmap((void *)vindir, be32toh(vdir->len));
paddr_unmap(__DEVOLATILE(void *, vindir), be32toh(vdir->len));
}
if ((be16toh(vdir->flags) & VRING_DESC_F_NEXT) == 0)