linux-kernelorg-stable/tools/testing/selftests/arm64/pauth
Bala-Vignesh-Reddy a679e5683d selftests: arm64: Check fread return value in exec_target
Fix -Wunused-result warning generated when compiled with gcc 13.3.0,
by checking fread's return value and handling errors, preventing
potential failures when reading from stdin.

Fixes compiler warning:
warning: ignoring return value of 'fread' declared with attribute
'warn_unused_result' [-Wunused-result]

Fixes: 806a15b254 ("kselftests/arm64: add PAuth test for whether exec() changes keys")

Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
2025-09-08 15:03:55 +01:00
..
.gitignore
Makefile kselftest/arm64: Enable build of PAC tests with LLVM=1 2024-11-12 13:19:06 +00:00
exec_target.c selftests: arm64: Check fread return value in exec_target 2025-09-08 15:03:55 +01:00
helper.c
helper.h
pac.c kselftest/arm64: Try harder to generate different keys during PAC tests 2024-11-12 15:05:44 +00:00
pac_corruptor.S