[PATCH 2/3] types: define aligned_ types based on uapi header

From: Masahiro Yamada
Date: Mon May 14 2018 - 22:23:22 EST


<uapi/linux/types.h> has the same typedefs except that it prefixes
them with double-underscore for user space. Use them for the kernel
space typedefs.

Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
---

include/linux/types.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/types.h b/include/linux/types.h
index ec13d02..be15897 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -115,9 +115,9 @@ 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)))
+#define aligned_u64 __aligned_u64
+#define aligned_be64 __aligned_be64
+#define aligned_le64 __aligned_le64

/**
* The type used for indexing onto a disc or disc partition.
--
2.7.4