]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: vDSO: vdso_test_getrandom: Avoid -Wunused
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 11 Jun 2025 10:33:54 +0000 (12:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 1 Jul 2025 13:50:42 +0000 (15:50 +0200)
commitb8ae430871254f95dd81dcff01828be3f6b24a57
tree7fbf919b3ff37ff8494f9cd17f6a37836e61e983
parent1c0fe1c7674121bcb233565bba08f7fcc2a8d5a8
selftests: vDSO: vdso_test_getrandom: Avoid -Wunused

vgetrandom_put_state() and the variable "ret" in kselftest() are unused.

Drop the variable "ret". Suppress the warning for  vgetrandom_put_state()
as it is meant as an example for libc implementors.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250611-selftests-vdso-fixes-v3-4-e62e37a6bcf5@linutronix.de
tools/testing/selftests/vDSO/vdso_test_getrandom.c