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)
Signed-off-by: Qian Cai <redacted>
---
arch/arm64/kvm/trng.c | 1 -
1 file changed, 1 deletion(-)
From: Will Deacon <will@kernel.org> Date: 2021-10-27 07:37:15
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Marc Zyngier <maz@kernel.org> Date: 2021-10-27 07:46:48
On 2021-10-26 22:09, Qian Cai wrote:
quoted hunk
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)
Signed-off-by: Qian Cai <redacted>
---
arch/arm64/kvm/trng.c | 1 -
1 file changed, 1 deletion(-)
That's an architectural definition that doesn't cause any problem.
If anything, that's documentation.
We have *tons* of other definitions with no user all over the
arm64 code. They save the exact same purpose.
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
That's an architectural definition that doesn't cause any problem.
If anything, that's documentation.
We have *tons* of other definitions with no user all over the
arm64 code. They save the exact same purpose.