From owner-freebsd-current@FreeBSD.ORG Mon Nov 25 14:45:43 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 730F3A66 for ; Mon, 25 Nov 2013 14:45:43 +0000 (UTC) Received: from mail.made4.biz (unknown [IPv6:2001:41d0:1:7018::1:3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3755F2EB8 for ; Mon, 25 Nov 2013 14:45:43 +0000 (UTC) Received: from [2001:1b48:10b:cafe:225:64ff:febe:589f] (helo=viking.yzserv.com) by mail.made4.biz with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VkxPu-000N5o-O6; Mon, 25 Nov 2013 15:45:39 +0100 Message-ID: <5293628A.6080508@FreeBSD.org> Date: Mon, 25 Nov 2013 15:45:30 +0100 From: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Michael Butler , freebsd-current Subject: Re: SVN r258549 breaks -current compiled with gcc References: <52935B26.9010105@protected-networks.net> In-Reply-To: <52935B26.9010105@protected-networks.net> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tsNu2uBWFEXPwoB2s6TED9han7bgqAtEb" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 14:45:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tsNu2uBWFEXPwoB2s6TED9han7bgqAtEb Content-Type: multipart/mixed; boundary="------------040905040508070108060501" This is a multi-part message in MIME format. --------------040905040508070108060501 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 25.11.2013 15:13, Michael Butler wrote: > --- drm_linux_list_sort.o --- > cc1: warnings being treated as errors > /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_linux_list_sort.c:= > In function 'drm_le_cmp': > /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_linux_list_sort.c:= 45: > warning: cast discards qualifiers from pointer target type Hello! Can you try the attached patch? I got rid of __DECONST() because clang didn't complain, sorry... --=20 Jean-S=E9bastien P=E9dron --------------040905040508070108060501 Content-Type: text/x-patch; name="drm_linux_list_sort-deconst.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="drm_linux_list_sort-deconst.patch" diff --git a/sys/dev/drm2/drm_linux_list_sort.c b/sys/dev/drm2/drm_linux_= list_sort.c index ae4cd64..19c5c9e 100644 --- a/sys/dev/drm2/drm_linux_list_sort.c +++ b/sys/dev/drm2/drm_linux_list_sort.c @@ -42,8 +42,8 @@ drm_le_cmp(void *priv, const void *d1, const void *d2) struct drm_list_sort_thunk *thunk; =20 thunk =3D priv; - le1 =3D *(struct list_head **)d1; - le2 =3D *(struct list_head **)d2; + le1 =3D *(__DECONST(struct list_head **, d1)); + le2 =3D *(__DECONST(struct list_head **, d2)); return ((thunk->cmp)(thunk->priv, le1, le2)); } =20 --------------040905040508070108060501-- --tsNu2uBWFEXPwoB2s6TED9han7bgqAtEb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlKTYpIACgkQa+xGJsFYOlOZ3QCguc2wZe+iHUAZjyOnALmatY0z 4rEAoNRIaWM4LcZa+nnXQWavccuTgKsH =JsTs -----END PGP SIGNATURE----- --tsNu2uBWFEXPwoB2s6TED9han7bgqAtEb--