GeezerVison is showing github.com — types: Complement the aligned types with signed 64-bit one · liom/BPI-Router-Linux@afe8849
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: include/linux/types.h +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -115,8 +115,9 @@ typedef u64 u_int64_t; |
115 | 115 | typedef s64 int64_t; |
116 | 116 | #endif |
117 | 117 |
|
118 | | -/* this is a special 64bit data type that is 8-byte aligned */ |
| 118 | +/* These are the special 64-bit data types that are 8-byte aligned */ |
119 | 119 | #define aligned_u64 __aligned_u64 |
| 120 | +#define aligned_s64 __aligned_s64 |
120 | 121 | #define aligned_be64 __aligned_be64 |
121 | 122 | #define aligned_le64 __aligned_le64 |
122 | 123 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: include/uapi/linux/types.h +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -53,6 +53,7 @@ typedef __u32 __bitwise __wsum; |
53 | 53 | * No conversions are necessary between 32-bit user-space and a 64-bit kernel. |
54 | 54 | */ |
55 | 55 | #define __aligned_u64 __u64 __attribute__((aligned(8))) |
| 56 | +#define __aligned_s64 __s64 __attribute__((aligned(8))) |
56 | 57 | #define __aligned_be64 __be64 __attribute__((aligned(8))) |
57 | 58 | #define __aligned_le64 __le64 __attribute__((aligned(8))) |
58 | 59 |
|
|