Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2017 04:10:02 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318209 - head/sys/dev/dpaa
Message-ID:  <201705120410.v4C4A2tZ012139@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Fri May 12 04:10:02 2017
New Revision: 318209
URL: https://svnweb.freebsd.org/changeset/base/318209

Log:
  Use UMA_ALIGN_PTR to specify pointer alignment
  
  Suggested by:	jhb

Modified:
  head/sys/dev/dpaa/if_dtsec_rm.c

Modified: head/sys/dev/dpaa/if_dtsec_rm.c
==============================================================================
--- head/sys/dev/dpaa/if_dtsec_rm.c	Fri May 12 03:44:20 2017	(r318208)
+++ head/sys/dev/dpaa/if_dtsec_rm.c	Fri May 12 04:10:02 2017	(r318209)
@@ -115,7 +115,7 @@ dtsec_rm_fi_pool_init(struct dtsec_softc
 
 	sc->sc_fi_zone = uma_zcreate(sc->sc_fi_zname,
 	    sizeof(struct dtsec_rm_frame_info), NULL, NULL, NULL, NULL,
-	    sizeof(void *) - 1, 0);
+	    UMA_ALIGN_PTR, 0);
 	if (sc->sc_fi_zone == NULL)
 		return (EIO);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705120410.v4C4A2tZ012139>