From: "Matthew W. S. Bell" Subject: Re: [PATCH] drm_handle_t type Date: Wed, 14 Apr 2010 00:19:45 +0100 Message-ID: <1271200785.14679.12.camel@ibis.bells> References: <1270259956.4292.6.camel@ibis.bells> <1270300193.20809.13.camel@ibis.bells> <1270924251.20809.33.camel@ibis.bells> <1270995003.13132.56.camel@balrog.2hip.net> Reply-To: dri-devel@lists.freedesktop.org, matthew@bells23.org.uk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1763551166==" Return-path: Received: from garuda.bells23.org.uk (garuda.bells23.org.uk [85.13.250.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 767CD9F329 for ; Tue, 13 Apr 2010 16:19:55 -0700 (PDT) In-Reply-To: <1270995003.13132.56.camel@balrog.2hip.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: Robert Noland Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1763551166== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ADlRKzWJAjXFoNbDlWl7" --=-ADlRKzWJAjXFoNbDlWl7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2010-04-11 at 09:10 -0500, Robert Noland wrote: > On Sat, 2010-04-10 at 19:30 +0100, Matthew W. S. Bell wrote: > > On Mon, 2010-04-05 at 17:46 +1000, Dave Airlie wrote: > > > Its probably not documented well anywhere, though I think the handles= are > > > 32-bit is written down somewhere. > >=20 > > Ah sorry, I missed some. >=20 > drm_handle_t is correct here...=20 No, drm_handle_t can be of a different size to void *; converting between integers and pointers of different sizes causes a warning. To eliminate the warning, the value first needs to be passed between uintptr_t and void *, which are of the same size, and then converted to drm_handle_t. The last part is implicit; the drm_handle_t casts are irrelevant/useless. Matthew --=-ADlRKzWJAjXFoNbDlWl7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAABAgAGBQJLxPwOAAoJEDyn+gO8EoIo90cH/RuMKiNvTZEnRSMvQKSOiSRv Psm+zJscZ7dFXVbrscmqkQXF0yMtEnsHaQ+J1Q4DgCpOTrVkhKC/hWL2j9jjd4cu 1FSUTORSmWBDpxZlhbCmc/bF116op0iVv1NHPhJ2ussD4OLp9VPNUjPOzQypbANj 2po/Iyeh7NLdzm1RsGuXPhzAHQOJgRVs7CkHvU5ICNqaBf947JyCpsYTGKwVgwod 49lQ5nFzgUiGMdeh/tPWZYCjBNGInikmaD//SzEXOvj/vElZ9qcz2qo3XN3hdNRz EewFefO1mXdokfOzGu2n0653oHIKbKXYAuW/tpplyRayxT5yCLuom3Tp1ztSB1A= =tuZz -----END PGP SIGNATURE----- --=-ADlRKzWJAjXFoNbDlWl7-- --===============1763551166== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1763551166==--