Re: [PATCH v1 04/11] KVM: arm64: nVHE: Use NULL to reset the trace buffer backing pointer

Vincent Donnefort <[email protected]>
Newsgroups org.infradead.lists.linux-arm-kernel,dev.linux.lists.kvmarm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-trace-kernel
Message-ID <[email protected]>
On Mon, Jul 20, 2026 at 05:13:36PM +0100, Fuad Tabba wrote:
> bpages_backing_start is a pointer; resetting it to plain 0 triggers a
> sparse warning.
> 
> No functional change intended.
> 
> Signed-off-by: Fuad Tabba <[email protected]>

Probably missed this when modifying the type for bpages_backing_start.

Reviewed-by: Vincent Donnefort <[email protected]>

> ---
>  arch/arm64/kvm/hyp/nvhe/trace.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/kvm/hyp/nvhe/trace.c b/arch/arm64/kvm/hyp/nvhe/trace.c
> index e7e150ab265ff..177fe3d8fbb13 100644
> --- a/arch/arm64/kvm/hyp/nvhe/trace.c
> +++ b/arch/arm64/kvm/hyp/nvhe/trace.c
> @@ -93,7 +93,7 @@ static void hyp_trace_buffer_unload_bpage_backing(struct hyp_trace_buffer *trace
>  
>  	__release_host_mem(start, size);
>  
> -	trace_buffer->bpages_backing_start = 0;
> +	trace_buffer->bpages_backing_start = NULL;
>  	trace_buffer->bpages_backing_size = 0;
>  }
>  
> -- 
> 2.39.5
> 

-- 
Vincent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.