summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2026-09-03 16:24:36 -0700
committerKees Cook <kees@kernel.org>2026-09-03 16:27:21 -0700
commit8d799af8b1b6f35fb1879e2e32c0a4d310984c7b (patch)
treefbf05098be8dddf32b77b50bf2750af2766d1f2e /scripts/Makefile.thinlto
parent3088a585de0eca79aa642ead0763f0642a1a1e52 (diff)
downloadlinux-next-8d799af8b1b6f35fb1879e2e32c0a4d310984c7b.tar.gz
linux-next-8d799af8b1b6f35fb1879e2e32c0a4d310984c7b.zip
randstruct: report bad casts as warnings rather than notes
find_bad_casts() reports a cast between two randomized structure pointer types with inform(), which renders as a "note:". It has done so since the plugin was originally added, while using error() freely for attribute misuse, UAPI structs, and version mismatches. Clang's implementation of the same check has always been stricter: it rejects such a cast as a full error. There is no reason for the GCC side to be effectively silent about the same problem. Build tested ARCH=x86_64 with CONFIG_RANDSTRUCT_FULL=y and GCC 14.2.0: allmodconfig clean, and defconfig clean under three different random seeds. A deliberate bad cast is still reported, now as a warning, at the correct line and column. Link: https://patch.msgid.link/20260903232438.60394-2-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions