[U-Boot] [PATCH 07/48] Bring in __aligned_u64 and friends to linux/types.h
These will be used for efi.h both for U-Boot running as an EFI application and as a payload. They come from Linux 4.1. Signed-off-by: Simon Glass s...@chromium.org --- include/linux/types.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/types.h b/include/linux/types.h index c9a8d9a..255967f 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -113,6 +113,11 @@ typedef__s64 int64_t; #endif /* __KERNEL_STRICT_NAMES */ +/* this is a special 64bit data type that is 8-byte aligned */ +#define aligned_u64 __u64 __aligned(8) +#define aligned_be64 __be64 _aligned(8) +#define aligned_le64 __le64 _aligned(8) + #if defined(CONFIG_USE_STDINT) defined(__INT64_TYPE__) typedef__UINT64_TYPE__ uint64_t; typedef__UINT64_TYPE__ u_int64_t; @@ -145,7 +150,6 @@ typedef __u64 __bitwise __be64; typedef __u16 __bitwise __sum16; typedef __u32 __bitwise __wsum; - typedef unsigned __bitwise__ gfp_t; struct ustat { -- 2.4.3.573.g4eafbef ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 07/48] Bring in __aligned_u64 and friends to linux/types.h
Hi Simon, On Wed, Jul 22, 2015 at 11:48 PM, Simon Glass s...@chromium.org wrote: These will be used for efi.h both for U-Boot running as an EFI application and as a payload. They come from Linux 4.1. Signed-off-by: Simon Glass s...@chromium.org --- include/linux/types.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/types.h b/include/linux/types.h index c9a8d9a..255967f 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -113,6 +113,11 @@ typedef__s64 int64_t; #endif /* __KERNEL_STRICT_NAMES */ +/* this is a special 64bit data type that is 8-byte aligned */ +#define aligned_u64 __u64 __aligned(8) +#define aligned_be64 __be64 _aligned(8) +#define aligned_le64 __le64 _aligned(8) The above two should be __aligned(8) + #if defined(CONFIG_USE_STDINT) defined(__INT64_TYPE__) typedef__UINT64_TYPE__ uint64_t; typedef__UINT64_TYPE__ u_int64_t; @@ -145,7 +150,6 @@ typedef __u64 __bitwise __be64; typedef __u16 __bitwise __sum16; typedef __u32 __bitwise __wsum; - typedef unsigned __bitwise__ gfp_t; struct ustat { -- Regards, Bin ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot