diff options
| author | Nathan Chancellor <[email protected]> | 2025-01-31 22:55:28 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2025-02-05 15:58:02 +0000 |
| commit | 738fc998b639407346a9e026514f0562301462cd (patch) | |
| tree | 958a0a56137e4bc743e7a6a4a61cc63318fb073b /net/unix/garbage.c | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-738fc998b639407346a9e026514f0562301462cd.tar.gz kernel-738fc998b639407346a9e026514f0562301462cd.zip | |
scripts/Makefile.extrawarn: Do not show clang's non-kprintf warnings at W=1
Clang's -Wformat-overflow and -Wformat-truncation have chosen to check
'%p' unlike GCC but it does not know about the kernel's pointer
extensions in lib/vsprintf.c, so the developers split that part of the
warning out for the kernel to disable because there will always be false
positives.
Commit 908dd508276d ("kbuild: enable -Wformat-truncation on clang") did
disabled these warnings but only in a block that would be called when
W=1 was not passed, so they would appear with W=1. Move the disabling of
the non-kprintf warnings to a block that always runs so that they are
never seen, regardless of warning level.
Fixes: 908dd508276d ("kbuild: enable -Wformat-truncation on clang")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
