From: Robert Noland Subject: Re: [PATCH] drm_handle_t type Date: Tue, 13 Apr 2010 22:32:23 -0500 Message-ID: <1271215943.13132.67.camel@balrog.2hip.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by gabe.freedesktop.org (Postfix) with ESMTP id 326F59E7C3 for ; Tue, 13 Apr 2010 20:32:43 -0700 (PDT) In-Reply-To: <1271200785.14679.12.camel@ibis.bells> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: dri-devel@lists.freedesktop.org, matthew@bells23.org.uk List-Id: dri-devel@lists.freedesktop.org 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 handles are > > > > 32-bit is written down somewhere. > > > > > > Ah sorry, I missed some. > > > > drm_handle_t is correct here... > > 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. My point being that the casts to drm_handle_t are correct. Feel free to fix linux' define for drm_handle_t. robert. > Matthew -- Robert Noland 2Hip Networks