diff options
| author | Jakub Kicinski <[email protected]> | 2024-04-16 15:10:48 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-04-18 01:35:49 +0000 |
| commit | caed8eba221533123192d39cc947f45cbb1e1db5 (patch) | |
| tree | b2d4d084d326f9470c2079703305657a515dc9b7 /net/unix/af_unix.c | |
| parent | net/sched: Fix mirred deadlock on device recursion (diff) | |
| download | kernel-caed8eba221533123192d39cc947f45cbb1e1db5.tar.gz kernel-caed8eba221533123192d39cc947f45cbb1e1db5.zip | |
selftests: kselftest_harness: fix Clang warning about zero-length format
Apparently it's more legal to pass the format as NULL, than
it is to use an empty string. Clang complains about empty
formats:
./../kselftest_harness.h:1207:30: warning: format string is empty
[-Wformat-zero-length]
1207 | diagnostic ? "%s" : "", diagnostic);
| ^~
1 warning generated.
Reported-by: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Fixes: 378193eff339 ("selftests: kselftest_harness: let PASS / FAIL provide diagnostic")
Tested-by: Sean Christopherson <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
