Commit 6d0e8d53 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Torvalds

include/linux/types.h: define aligned_ types based on uapi header

<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

Link: default avatarMasahiro Yamada <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Geert Uytterhoeven <>
Cc: Alexey Dobriyan <>
Cc: Lihao Liang <>
Cc: Philippe Ombredanne <>
Cc: Pekka Enberg <>
Cc: Greg Kroah-Hartman <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6d8e4108
......@@ -115,9 +115,9 @@ typedef __s64 int64_t;
/* 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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment