Re: [PATCH] KVM: arm64: Remove unused TRNG_NO_ENTROPY

From: Will Deacon
Date: Wed Oct 27 2021 - 03:37:15 EST


On Tue, Oct 26, 2021 at 05:09:13PM -0400, Qian Cai wrote:
> TRNG_NO_ENTROPY was unused when introduced and now. This is also caught by
> GCC (W=2):
>
> arch/arm64/kvm/trng.c:17: warning: macro "TRNG_NO_ENTROPY" is not used [-Wunused-macros]
> 17 | #define TRNG_NO_ENTROPY ((unsigned long)-3)

This return value is defined by the TRNG SMCCC spec (Arm DEN0098) so I'd
rather just keep it around given that it's not causing any problems.

Will