Date: Mon, 3 Jan 2005 17:01:33 +0100 From: Joerg Sonnenberger <joerg@britannica.bec.de> To: freebsd-hackers@freebsd.org Cc: Tejas Sumant <tejas.sumant@gmail.com> Subject: Re: Freeing Volatile Pointer Message-ID: <20050103160133.GE826@britannica.bec.de> In-Reply-To: <20050103125351.GA1242@straylight.m.ringlet.net> References: <009e01c4f191$50433430$1500a8c0@indranet.local> <20050103125351.GA1242@straylight.m.ringlet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 03, 2005 at 02:53:51PM +0200, Peter Pentchev wrote: > free((void *)host_mem_resp_ptr, M_DEVBUF) > > ...and you should be okay, unless you specifically pass -Wcast-qual to > the compiler. If you do, it will again give this warning, just because > you have explicitly asked it to :) Still better is using __DEVOLATILE from sys/cdefs.h, which does a cast to uintptr_t first. This way, you even avoid this warning :) Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050103160133.GE826>