kasan: simplify and clarify Makefile
authorAndrey Konovalov <andreyknvl@gmail.com>
Wed, 14 Aug 2024 16:10:52 +0000 (18:10 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 16 Sep 2024 16:04:32 +0000 (18:04 +0200)
commitcc1d98f9fe30467a2224184336b3166ef4adbc25
tree99cab8e24870608f1f003f704131ecfb2de879d6
parentca627e636551e74b528f150d744f67d9a63f0ae7
kasan: simplify and clarify Makefile

When KASAN support was being added to the Linux kernel, GCC did not yet
support all of the KASAN-related compiler options. Thus, the KASAN
Makefile had to probe the compiler for supported options.

Nowadays, the Linux kernel GCC version requirement is 5.1+, and thus we
don't need the probing of the -fasan-shadow-offset parameter: it exists in
all 5.1+ GCCs.

Simplify the KASAN Makefile to drop CFLAGS_KASAN_MINIMAL.

Also add a few more comments and unify the indentation.

Signed-off-by: Andrey Konovalov <andreyknvl@gmail.com>
Acked-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20240814161052.10374-1-andrey.konovalov@linux.dev
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
scripts/Makefile.kasan