]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Revert "include/linux: move typdef for uintptr_t"
authorYork Sun <yorksun@freescale.com>
Wed, 16 Dec 2015 06:12:24 +0000 (14:12 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 16 Dec 2015 12:11:15 +0000 (07:11 -0500)
This reverts commit e8f954a756a825130d11b9c8fca70101dd8b3ac5, which
causes compiling errors on 32-bit hosts.

Acked-by: Aneesh Bansal <aneesh.bansal@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
include/compiler.h
include/linux/types.h

index f853ed4787623185bdb9f719c11fed44b3fa491b..47c296e202d1e97388d3207e4f0c2321831a2f87 100644 (file)
@@ -115,6 +115,9 @@ typedef unsigned int uint;
 #ifdef CONFIG_USE_STDINT
 /* Provided by gcc. */
 #include <stdint.h>
+#else
+/* Type for `void *' pointers. */
+typedef unsigned long int uintptr_t;
 #endif
 
 #include <linux/string.h>
index c7e8fdb9c27b1b4890dd1437712ce4d7ceba0a27..6f75be4253786888b7717febfadc74a22afb29d3 100644 (file)
@@ -124,7 +124,6 @@ typedef             __UINT64_TYPE__ u_int64_t;
 typedef                __INT64_TYPE__          int64_t;
 #endif
 
-typedef unsigned long uintptr_t;
 /*
  * Below are truly Linux-specific types that should never collide with
  * any application/library that wants linux/types.h.