From owner-svn-src-head@freebsd.org Sat Jan 13 18:44:29 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B1A6E78D7E; Sat, 13 Jan 2018 18:44:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D230671A28; Sat, 13 Jan 2018 18:44:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 889E54722D; Sat, 13 Jan 2018 19:44:20 +0100 (CET) From: Dimitry Andric Message-Id: <65C751BF-FC03-4541-8D2A-A02C3A1B2A13@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_2E627374-C599-40D1-8129-6BFF3E93C96D"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r327934 - head/sys/contrib/zstd/lib/freebsd Date: Sat, 13 Jan 2018 19:44:14 +0100 In-Reply-To: <201801131809.w0DI9AZw072646@repo.freebsd.org> Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org To: "Pedro F. Giffuni" References: <201801131809.w0DI9AZw072646@repo.freebsd.org> X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 18:44:29 -0000 --Apple-Mail=_2E627374-C599-40D1-8129-6BFF3E93C96D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 13 Jan 2018, at 19:09, Pedro F. Giffuni wrote: >=20 > Author: pfg > Date: Sat Jan 13 18:09:09 2018 > New Revision: 327934 > URL: https://svnweb.freebsd.org/changeset/base/327934 >=20 > Log: > zstd: Use memalloc(9) for calloc macro. >=20 > This is in contrib code but since we only have memalloc(9) in current = we > will not upstream this. >=20 > Modified: > head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h >=20 > Modified: head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h Sat Jan 13 = 17:56:46 2018 (r327933) > +++ head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h Sat Jan 13 = 18:09:09 2018 (r327934) > @@ -46,7 +46,7 @@ MALLOC_DECLARE(M_ZSTD); > #define malloc(x) (malloc)((x), M_ZSTD, M_WAITOK) > #define free(x) (free)((x), M_ZSTD) > /* in zstd's use of calloc, a is always 1 */ > -#define calloc(a,b) (malloc)((a)*(b), M_ZSTD, M_WAITOK | M_ZERO) > +#define calloc(a,b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | = M_ZERO) > #endif >=20 > #ifdef __cplusplus s/memalloc/mallocarray/g, in the commit message? -Dimitry --Apple-Mail=_2E627374-C599-40D1-8129-6BFF3E93C96D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWlpTgwAKCRCwXqMKLiCW owI3AKC9VGFp4w/ejuRUF58BNgKNwRslAQCfTi1D71K4jmjbvLhjYIrBgNAM96w= =ufB6 -----END PGP SIGNATURE----- --Apple-Mail=_2E627374-C599-40D1-8129-6BFF3E93C96D--