aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorJohn Hubbard <[email protected]>2024-05-31 20:07:54 +0000
committerShuah Khan <[email protected]>2024-05-31 20:37:10 +0000
commit4bf15b1c657d22d1d70173e43264e4606dfe75ff (patch)
treed26dd3aab67c490ff93e6d560afe6ac323e78c7c /scripts/generate_rust_target.rs
parentselftests/futex: don't redefine .PHONY targets (all, clean) (diff)
downloadkernel-4bf15b1c657d22d1d70173e43264e4606dfe75ff.tar.gz
kernel-4bf15b1c657d22d1d70173e43264e4606dfe75ff.zip
selftests/futex: don't pass a const char* to asprintf(3)
When building with clang, via: make LLVM=1 -C tools/testing/selftests ...clang issues this warning: futex_requeue_pi.c:403:17: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] This warning fires because test_name is passed into asprintf(3), which then changes it. Fix this by simply removing the const qualifier. This is a local automatic variable in a very short function, so there is not much need to use the compiler to enforce const-ness at this scope. [1] https://lore.kernel.org/all/20240329-selftests-libmk-llvm-rfc-v1-1-2f9ed7d1c49f@valentinobst.de/ Fixes: f17d8a87ecb5 ("selftests: fuxex: Report a unique test name per run of futex_requeue_pi") Reviewed-by: Davidlohr Bueso <[email protected]> Signed-off-by: John Hubbard <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions