svn commit: r276031 - head/sys/dev/beri/virtio

Ian Lepore ian at FreeBSD.org
Sun Dec 21 21:24:20 UTC 2014


Author: ian
Date: Sun Dec 21 21:24:19 2014
New Revision: 276031
URL: https://svnweb.freebsd.org/changeset/base/276031

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

Modified:
  head/sys/dev/beri/virtio/virtio.c

Modified: head/sys/dev/beri/virtio/virtio.c
==============================================================================
--- head/sys/dev/beri/virtio/virtio.c	Sun Dec 21 21:23:53 2014	(r276030)
+++ head/sys/dev/beri/virtio/virtio.c	Sun Dec 21 21:24:19 2014	(r276031)
@@ -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
 					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)


More information about the svn-src-head mailing list