diff mbox series

[3/3] kbuild: re-enable KCSAN for autogenerated *.mod.c intermediaries

Message ID 20241113234526.402738-4-masahiroy@kernel.org (mailing list archive)
State New
Headers show
Series kbuild: enable objtool for more objects and re-enable KCSAN for *.mod.o | expand

Commit Message

Masahiro Yamada Nov. 13, 2024, 11:45 p.m. UTC
This reverts commit 54babdc0343f ("kbuild: Disable KCSAN for
autogenerated *.mod.c intermediaries").

Now that objtool is enabled for *.mod.c, there is no need to filter
out CFLAGS_KCSAN.

I no longer see "Unpatched return thunk in use. This should not happen!"
error with KCSAN when loading a module.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 scripts/Makefile.modfinal | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal
index 0547a4b59f13..3e56a3f733e9 100644
--- a/scripts/Makefile.modfinal
+++ b/scripts/Makefile.modfinal
@@ -22,7 +22,6 @@  __modfinal: $(modules:%.o=%.ko)
 modname = $(notdir $(@:.mod.o=))
 part-of-module = y
 GCOV_PROFILE := n
-KCSAN_SANITIZE := n
 ccflags-remove-y := $(CC_FLAGS_CFI)
 
 %.mod.o: %.mod.c FORCE