summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/types.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-06-28 04:48:40 +0300
committerTom Rini <trini@konsulko.com>2016-07-15 01:22:24 +0300
commit95ebc253e6d4a3370e3dab14743bfc99fcd9cf1b (patch)
tree83315da1cb5ac35ae0249a9cacfbed31d2902020 /arch/arm/include/asm/types.h
parent8662bea38e2779a45275a6ac13a378f9f989930a (diff)
downloadu-boot-95ebc253e6d4a3370e3dab14743bfc99fcd9cf1b.tar.xz
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: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/types.h')
-rw-r--r--arch/arm/include/asm/types.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h
index d108915ff5..9af7353f08 100644
--- a/arch/arm/include/asm/types.h
+++ b/arch/arm/include/asm/types.h
@@ -71,5 +71,4 @@ typedef u32 dma_addr_t;
#endif /* __KERNEL__ */
-typedef unsigned long resource_size_t;
#endif