[U-Boot] [PATCH v2 1/3] types.h: move and redefine resource_size_t
Simon Glass
sjg at chromium.org
Wed Jun 29 05:28:09 CEST 2016
On 27 June 2016 at 18:48, Masahiro Yamada <yamada.masahiro at socionext.com> wrote:
> 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 at socionext.com>
> ---
>
> Changes in v2: None
>
> arch/arm/include/asm/types.h | 1 -
> include/linux/types.h | 4 ++++
> 2 files changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list