[kvmtool PATCH v2 02/10] kvmtool: Fix absence of __packed definition
Anup Patel
apatel at ventanamicro.com
Mon Mar 25 08:31:33 PDT 2024
The absence of __packed definition in kvm/compiler.h cause build
failer after syncing kernel headers with Linux-6.8 because the
kernel header uapi/linux/virtio_pci.h uses __packed for structures.
Signed-off-by: Anup Patel <apatel at ventanamicro.com>
---
include/kvm/compiler.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/kvm/compiler.h b/include/kvm/compiler.h
index 2013a83..dd8a22a 100644
--- a/include/kvm/compiler.h
+++ b/include/kvm/compiler.h
@@ -1,6 +1,8 @@
#ifndef KVM_COMPILER_H_
#define KVM_COMPILER_H_
+#include <linux/compiler.h>
+
#ifndef __compiletime_error
# define __compiletime_error(message)
#endif
--
2.34.1
More information about the kvm-riscv
mailing list