mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
70f959c3c4
commit
e8f954a756
2 changed files with 1 additions and 3 deletions
|
@ -124,6 +124,7 @@ 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue