summaryrefslogtreecommitdiff
path: root/tools/include/linux
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2025-12-20 02:38:17 +0300
committerAlex Williamson <alex@shazbot.org>2025-12-24 00:16:18 +0300
commit30fb98ec34d3c14cb748714ea3179b597604a1d4 (patch)
treef4d101c2cefe9ce4f32a6d741e4df10f28041421 /tools/include/linux
parent1e91505038823e51b98d1a63660606307202d5b6 (diff)
downloadlinux-30fb98ec34d3c14cb748714ea3179b597604a1d4.tar.xz
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>
Diffstat (limited to 'tools/include/linux')
-rw-r--r--tools/include/linux/types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h
index 4928e33d44ac..d41f8a261bce 100644
--- a/tools/include/linux/types.h
+++ b/tools/include/linux/types.h
@@ -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;
};