From owner-p4-projects@FreeBSD.ORG Tue Oct 21 18:06:41 2014 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0F967301; Tue, 21 Oct 2014 18:06:41 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C3B3A2FF for ; Tue, 21 Oct 2014 18:06:40 +0000 (UTC) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:1900:2254:2068::682:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF860D6 for ; Tue, 21 Oct 2014 18:06:40 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.9/8.14.9) with ESMTP id s9LI6eOA018526 for ; Tue, 21 Oct 2014 18:06:40 GMT (envelope-from jmg@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.9/8.14.9/Submit) id s9LI6ebv018523 for perforce@freebsd.org; Tue, 21 Oct 2014 18:06:40 GMT (envelope-from jmg@freebsd.org) Date: Tue, 21 Oct 2014 18:06:40 GMT Message-Id: <201410211806.s9LI6ebv018523@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jmg@freebsd.org using -f From: John-Mark Gurney Subject: PERFORCE change 1201876 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.18-1 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2014 18:06:41 -0000 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 #include #include +#include #include #include #include @@ -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)