From: "Matthew W. S. Bell" Subject: Re: [PATCH] drm_handle_t type Date: Wed, 14 Apr 2010 17:15:26 +0100 Message-ID: <1271261726.14679.21.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> <1271200785.14679.12.camel@ibis.bells> <1271215943.13132.67.camel@balrog.2hip.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0006100347==" Return-path: Received: from garuda.bells23.org.uk (garuda.bells23.org.uk [85.13.250.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 6251F9E973 for ; Wed, 14 Apr 2010 09:15:35 -0700 (PDT) In-Reply-To: <1271215943.13132.67.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 --===============0006100347== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-rGrOlhvo1ZXHUFhoptfp" --=-rGrOlhvo1ZXHUFhoptfp Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2010-04-13 at 22:32 -0500, Robert Noland wrote: > On Wed, 2010-04-14 at 00:19 +0100, Matthew W. S. Bell wrote: > > 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 han= dles are > > > > > 32-bit is written down somewhere. > > > >=20 > > > > Ah sorry, I missed some. > > >=20 > > > drm_handle_t is correct here...=20 > >=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. >=20 > My point being that the casts to drm_handle_t are correct. Feel free to > fix linux' define for drm_handle_t. Warnings; warnings. The point is to get rid of the warnings. warnings? Did I mention that when compiling a warning is emitted? Warnings. This code just silences the warnings.=20 Warnings. Matthew --=-rGrOlhvo1ZXHUFhoptfp 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) iQEcBAABAgAGBQJLxeoaAAoJEDyn+gO8EoIoA6MH/igwu5LRCVIRB9zPg5awaOxm cOLLUbJgZZjLba6QRCnUqZ7ImUPB+/Aoj0ORVRCPyD5Lo8E+Xuq/mjmfcEhdVITB pTioD/OSP1UnCLHfgQzUVw2VqV9kbzE4WDpWE015ikjtZ4ZGhkgoEoaGcGJZ4Fqi S6+bplv1uoEckI/k5XCCrTYKCNw440eJrmd90+k4Q4AwzCyA/y/myj6nUha6zCpI afMBmVQTMfmNXroyKiLq9Tqh1vBgEpYYYWYotu/KwmJ1ch3XUZsHzETt4WAkFhLo Roz5a18B7L7M+vDHl0rBbujAbxjdyCgkXsfcZHKM1kGoWIY8Drl9jAwi1lSv7nA= =azRH -----END PGP SIGNATURE----- --=-rGrOlhvo1ZXHUFhoptfp-- --===============0006100347== 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 --===============0006100347==--