Date: Tue, 21 Oct 2014 18:06:40 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 1201876 for review Message-ID: <201410211806.s9LI6ebv018523@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1201876?ac=10 Change 1201876 by jmg@jmg_carbon2 on 2014/10/21 18:05:54 add header needed to compile... mtod casts to the type, not as the docs (previously) said a pointer to the type... Sponsored by: FreeBSD Foundation Sponsored by: Netgate Affected files ... .. //depot/projects/opencrypto/sys/crypto/aesni/aesni.c#12 edit Differences ... ==== //depot/projects/opencrypto/sys/crypto/aesni/aesni.c#12 (text+ko) ==== @@ -44,6 +44,7 @@ #include <sys/rwlock.h> #include <sys/bus.h> #include <sys/uio.h> +#include <sys/mbuf.h> #include <crypto/aesni/aesni.h> #include <cryptodev_if.h> #include <opencrypto/gmac.h> @@ -378,7 +379,7 @@ m = (struct mbuf *)crp->crp_buf; if (m->m_next != NULL) goto alloc; - addr = mtod(m, uint8_t); + addr = mtod(m, uint8_t *); } else if (crp->crp_flags & CRYPTO_F_IOV) { uio = (struct uio *)crp->crp_buf; if (uio->uio_iovcnt != 1)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410211806.s9LI6ebv018523>