From eba43a990511a28de8ea822815072d341123e11d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Dec 2008 06:51:45 -0500 Subject: [PATCH 3/9] linux/types.h: always export 64bit aligned defines Some kernel headers exported to userspace rely on these 64bit aligned defines. However, they are hidden behind __KERNEL_STRICT_NAMES at the moment which means most of the time, they're never actually available. These these defines dont actually conflict with normal userspace / C library types, there's no reason to hide them behind the __KERNEL_STRICT_NAMES define. Signed-off-by: Mike Frysinger Cc: Sam Ravnborg Cc: David Woodhouse Cc: Jan Engelhardt Cc: Patrick McHardy Cc: David S. Miller Signed-off-by: Andrew Morton --- include/linux/types.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/types.h b/include/linux/types.h index 5abe354..2061c67 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -118,11 +118,6 @@ typedef __u64 u_int64_t; typedef __s64 int64_t; #endif -/* this is a special 64bit data type that is 8-byte aligned */ -#define aligned_u64 __u64 __attribute__((aligned(8))) -#define aligned_be64 __be64 __attribute__((aligned(8))) -#define aligned_le64 __le64 __attribute__((aligned(8))) - /** * The type used for indexing onto a disc or disc partition. * @@ -149,6 +144,11 @@ typedef unsigned long blkcnt_t; #endif /* __KERNEL__ */ +/* this is a special 64bit data type that is 8-byte aligned */ +#define aligned_u64 __u64 __attribute__((aligned(8))) +#define aligned_be64 __be64 __attribute__((aligned(8))) +#define aligned_le64 __le64 __attribute__((aligned(8))) + /* * Below are truly Linux-specific types that should never collide with * any application/library that wants linux/types.h. -- 1.6.3.3