summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorShunsuke Mie <mie@igel.co.jp>2023-04-17 11:20:37 +0900
committerMichael S. Tsirkin <mst@redhat.com>2023-04-21 03:02:35 -0400
commite9c4962c5d69b8a238bb8bd51e8fdce39be13e5b (patch)
treeb4e48a42baa39fb248f78dfbb03d796364783674 /tools/include
parent38fc29ea754711e9a8c4e9ca2678ab41353a4662 (diff)
tools/virtio: fix build caused by virtio_ring changes
Fix the build dependency for virtio_test. The virtio_ring that is used from the test requires container_of_const(). Change to use container_of.h kernel header directly and adapt related codes. Signed-off-by: Shunsuke Mie <mie@igel.co.jp> Message-Id: <20230417022037.917668-2-mie@igel.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h
index 051fdeaf2670..8519386acd23 100644
--- a/tools/include/linux/types.h
+++ b/tools/include/linux/types.h
@@ -49,7 +49,12 @@ typedef __s8 s8;
#endif
#define __force
+/* This is defined in linux/compiler_types.h and is left for backward
+ * compatibility.
+ */
+#ifndef __user
#define __user
+#endif
#define __must_check
#define __cold