diff mbox series

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

Message ID 1526350925-14922-2-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 6d0e8d53849fb491549a01893d786bf33d4b28df
Headers show
Series [1/3] int-ll64.h: define u{8,16,32,64} and s{8,16,32,64} based on uapi header | expand

Commit Message

Masahiro Yamada May 15, 2018, 2:22 a.m. UTC
<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@socionext.com>

---

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

-- 
2.7.4
diff mbox series

Patch

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.