Re: [PATCH 2/2] x86/virt/tdx: Fix sparse warnings from using 0 for NULL

From: Edgecombe, Rick P

Date: Wed Oct 29 2025 - 17:09:18 EST


On Wed, 2025-10-29 at 12:48 -0700, Dave Hansen wrote:
> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> sparse moans:
>
> ... arch/x86/kvm/vmx/tdx.c:859:38: warning: Using plain integer as NULL pointer
>
> for several TDX pointer initializations. While I love a good ptr=0
> now and then, it's good to have quiet sparse builds.
>
> Fix the sites up.
>
If we want it:

Fixes: a50f673f25e0 ("KVM: TDX: Do TDX specific vcpu initialization")
Fixes: 8d032b683c29 ("KVM: TDX: create/destroy VM structure")