Re: [PATCH 3/3] KVM: arm64: tracing: add ftrace dependency
From: Vincent Donnefort
Date: Thu Mar 12 2026 - 09:52:56 EST
On Thu, Mar 12, 2026 at 01:35:44PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> Selecting CONFIG_TRACE_REMOTE causes a build time warning when FTRACE
> is disabled:
>
> WARNING: unmet direct dependencies detected for TRACE_REMOTE
> Depends on [n]: FTRACE [=n]
> Selected by [y]:
> - NVHE_EL2_TRACING [=y] && VIRTUALIZATION [=y] && KVM [=y] && NVHE_EL2_DEBUG [=y] && TRACING [=y]
>
> Add this as another dependency to ensure a clean build.
>
> Fixes: 3aed038aac8d ("KVM: arm64: Add trace remote for the nVHE/pKVM hyp")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> arch/arm64/kvm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig
> index 32c7a4f85e75..bcc87f9dad33 100644
> --- a/arch/arm64/kvm/Kconfig
> +++ b/arch/arm64/kvm/Kconfig
> @@ -78,7 +78,7 @@ if NVHE_EL2_DEBUG
>
> config NVHE_EL2_TRACING
> bool
> - depends on TRACING
> + depends on TRACING && FTRACE
> select TRACE_REMOTE
> default y
Reviewed-by: Vincent Donnefort <vdonnefort@xxxxxxxxxx>
>
> --
> 2.39.5
>