]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen: use __UINTPTR_TYPE__ for uintptr_t
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 26 Feb 2019 18:39:53 +0000 (10:39 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 26 Feb 2019 18:39:53 +0000 (10:39 -0800)
Use __UINTPTR_TYPE__ to define uintptr_t. A later patch will make use of
__PTRDIFF_TYPE__ to define ptrdiff_t.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: jbeulich@suse.com
CC: andrew.cooper3@citrix.com
CC: julien.grall@arm.com
CC: George.Dunlap@eu.citrix.com
CC: ian.jackson@eu.citrix.com
CC: konrad.wilk@oracle.com
CC: tim@xen.org
CC: wei.liu2@citrix.com
---
Changes in v11:
- split patch

xen/include/xen/types.h

index 03f0fe612ed96118614505c39d0e33b946288d6c..1059fab4b87f60bbfa58de537ac1adf2724794b2 100644 (file)
@@ -52,7 +52,7 @@ typedef __u32 __be32;
 typedef __u64 __le64;
 typedef __u64 __be64;
 
-typedef unsigned int __attribute__((__mode__(__pointer__))) uintptr_t;
+typedef __UINTPTR_TYPE__ uintptr_t;
 
 typedef bool bool_t;
 #define test_and_set_bool(b)   xchg(&(b), true)