From patchwork Sat Apr 3 01:59:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matthew W. S. Bell" X-Patchwork-Id: 90510 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o337jbRA021027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 3 Apr 2010 07:46:13 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Nxy21-00054k-7B; Sat, 03 Apr 2010 07:44:37 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NxseH-0004ce-8z for dri-devel@lists.sourceforge.net; Sat, 03 Apr 2010 01:59:45 +0000 X-ACL-Warn: Received: from garuda.bells23.org.uk ([85.13.250.28]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NxseF-0001mO-GC for dri-devel@lists.sourceforge.net; Sat, 03 Apr 2010 01:59:45 +0000 Received: from localhost ([127.0.0.1] helo=garuda.bells23.org.uk) by garuda.bells23.org.uk with esmtp (Exim 4.69) (envelope-from ) id 1Nxse8-00076D-O2 for dri-devel@lists.sourceforge.net; Sat, 03 Apr 2010 02:59:36 +0100 Received: from [87.254.78.250] (port=33279 helo=[192.168.1.230]) by garuda.bells23.org.uk with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Nxse4-000767-3O for dri-devel@lists.sourceforge.net; Sat, 03 Apr 2010 02:59:36 +0100 Subject: [PATCH] typdef uintptr_t drm_handle_t; unsigned int is wrong on 64-bit. From: "Matthew W. S. Bell" To: dri-devel@lists.sourceforge.net Date: Sat, 03 Apr 2010 02:59:16 +0100 Message-ID: <1270259956.4292.6.camel@ibis.bells> Mime-Version: 1.0 X-Mailer: Evolution 2.29.92 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NxseF-0001mO-GC X-Mailman-Approved-At: Sat, 03 Apr 2010 07:44:36 +0000 X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: matthew@bells23.org.uk, dri-devel@lists.sourceforge.net List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 03 Apr 2010 07:46:14 +0000 (UTC) diff --git a/include/drm/drm.h b/include/drm/drm.h index 4822159..95141a2 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -40,7 +40,7 @@ #include #include -typedef unsigned int drm_handle_t; +typedef uintptr_t drm_handle_t; #else /* One of the BSDs */ @@ -54,7 +54,7 @@ typedef int32_t __s32; typedef uint32_t __u32; typedef int64_t __s64; typedef uint64_t __u64; -typedef unsigned long drm_handle_t; +typedef uintptr_t drm_handle_t; #endif