summaryrefslogtreecommitdiffstats
path: root/include/compiler.h
diff options
context:
space:
mode:
authorAneesh Bansal <aneesh.bansal@freescale.com>2015-12-08 13:54:28 +0530
committerYork Sun <yorksun@freescale.com>2015-12-15 08:57:34 +0800
commite8f954a756a825130d11b9c8fca70101dd8b3ac5 (patch)
treee3b45d7ada855e17b537300f3f04bf958819dac8 /include/compiler.h
parent70f959c3c45bd408ba4f7b18a3a69afd9ccfe739 (diff)
downloadblackbird-obmc-uboot-e8f954a756a825130d11b9c8fca70101dd8b3ac5.tar.gz
blackbird-obmc-uboot-e8f954a756a825130d11b9c8fca70101dd8b3ac5.zip
include/linux: move typdef for uintptr_t
uintptr_t which is a typdef for unsigned long is needed for creating pointers (32 or 64 bit depending on Core) from 32 bit variables storing the address. If a 32 bit variable (u32) is typecasted to a pointer (void *), compiler gives a warning in case size of pointer on the core is 64 bit. The typdef has been moved from include/compiler.h to include/linux/types.h Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 47c296e202..f853ed4787 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -115,9 +115,6 @@ 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>
OpenPOWER on IntegriCloud