[kvmtool PATCH v2 02/10] kvmtool: Fix absence of __packed definition

Andrew Jones ajones at ventanamicro.com
Tue Mar 26 02:14:02 PDT 2024


On Mon, Mar 25, 2024 at 09:01:33PM +0530, Anup Patel wrote:
> 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
>

Reviewed-by: Andrew Jones <ajones at ventanamicro.com>



More information about the kvm-riscv mailing list