Date: Sun, 21 Dec 2014 21:24:20 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276031 - head/sys/dev/beri/virtio Message-ID: <201412212124.sBLLOK0k072358@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412212124.sBLLOK0k072358>