Skip to content
Snippets Groups Projects
Commit 95ebc253 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

types.h: move and redefine resource_size_t


Currently, this is only defined in arch/arm/include/asm/types.h,
so move it to include/linux/types.h to make it available for all
architectures.

I defined it with phys_addr_t as Linux does.  I needed to surround
the define with #ifdef __KERNEL__ ... #endif to avoid build errors
in tools building.  (Host tools should not include <linux/types.h>
in the first place, but this is already messy in U-Boot...)

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 8662bea3
No related branches found
No related tags found
No related merge requests found
...@@ -71,5 +71,4 @@ typedef u32 dma_addr_t; ...@@ -71,5 +71,4 @@ typedef u32 dma_addr_t;
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
typedef unsigned long resource_size_t;
#endif #endif
...@@ -124,6 +124,10 @@ typedef __UINT64_TYPE__ u_int64_t; ...@@ -124,6 +124,10 @@ typedef __UINT64_TYPE__ u_int64_t;
typedef __INT64_TYPE__ int64_t; typedef __INT64_TYPE__ int64_t;
#endif #endif
#ifdef __KERNEL__
typedef phys_addr_t resource_size_t;
#endif
/* /*
* Below are truly Linux-specific types that should never collide with * Below are truly Linux-specific types that should never collide with
* any application/library that wants linux/types.h. * any application/library that wants linux/types.h.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment