[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251219233818.1965306-2-dmatlack@google.com>
Date: Fri, 19 Dec 2025 23:38:17 +0000
From: David Matlack <dmatlack@...gle.com>
To: Alex Williamson <alex@...zbot.org>
Cc: Alex Mastro <amastro@...com>, Andrew Morton <akpm@...ux-foundation.org>,
David Matlack <dmatlack@...gle.com>, Josh Hilke <jrhilke@...gle.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
Raghavendra Rao Ananta <rananta@...gle.com>, Shuah Khan <shuah@...nel.org>,
Wei Yang <richard.weiyang@...il.com>, Yosry Ahmed <yosryahmed@...gle.com>
Subject: [PATCH 1/2] 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@...gle.com>
---
tools/include/linux/types.h | 8 ++++++++
1 file changed, 8 insertions(+)
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;
};
--
2.52.0.322.g1dd061c0dc-goog
Powered by blists - more mailing lists