aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2024-03-25 21:01:33 +0530
committerWill Deacon <will@kernel.org>2024-04-09 16:01:58 +0100
commitf8c9614c4696ac6df435e5ac63381ec558527369 (patch)
treed1622bc566c4708c9117b3d27df0d1326fa1eec5
parent9968468141fc441d2bc9891ea59ae09eb1e358bf (diff)
downloadkvmtool-f8c9614c4696ac6df435e5ac63381ec558527369.tar.gz
kvmtool: Fix absence of __packed definition
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@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20240325153141.6816-3-apatel@ventanamicro.com Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--include/kvm/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kvm/compiler.h b/include/kvm/compiler.h
index 2013a835..dd8a22ac 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