]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools include: Add definitions for __aligned_{l,b}e64
authorDavid Matlack <dmatlack@google.com>
Fri, 19 Dec 2025 23:38:17 +0000 (23:38 +0000)
committerAlex Williamson <alex@shazbot.org>
Tue, 23 Dec 2025 21:16:18 +0000 (14:16 -0700)
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>
tools/include/linux/types.h

index 4928e33d44ac4162703396df9dca62b4a86f0dec..d41f8a261bce82faa1704a1ca551ebf76a54b018 100644 (file)
@@ -88,6 +88,14 @@ typedef struct {
 # define __aligned_u64 __u64 __attribute__((aligned(8)))
 #endif
 
+#ifndef __aligned_be64
+# define __aligned_be64 __be64 __attribute__((aligned(8)))
+#endif
+
+#ifndef __aligned_le64
+# define __aligned_le64 __le64 __attribute__((aligned(8)))
+#endif
+
 struct list_head {
        struct list_head *next, *prev;
 };