Skip to content

Commit 30fb98e

Browse files
dmatlackawilliam
authored andcommitted
tools include: Add definitions for __aligned_{l,b}e64
Add definitions for the missing __aligned_le64 and __aligned_be64 to tools/include/linux/types.h. The former is needed by <linux/iommufd.h> for builds where tools/include/ is on the include path ahead of usr/include/. Signed-off-by: David Matlack <dmatlack@google.com> Link: https://lore.kernel.org/r/20251219233818.1965306-2-dmatlack@google.com Signed-off-by: Alex Williamson <alex@shazbot.org>
1 parent 1e91505 commit 30fb98e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tools/include/linux/types.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ typedef struct {
8888
# define __aligned_u64 __u64 __attribute__((aligned(8)))
8989
#endif
9090

91+
#ifndef __aligned_be64
92+
# define __aligned_be64 __be64 __attribute__((aligned(8)))
93+
#endif
94+
95+
#ifndef __aligned_le64
96+
# define __aligned_le64 __le64 __attribute__((aligned(8)))
97+
#endif
98+
9199
struct list_head {
92100
struct list_head *next, *prev;
93101
};

0 commit comments

Comments
 (0)