From: Masahiro Yamada Date: Wed, 13 Nov 2024 23:45:23 +0000 (+0900) Subject: kbuild: re-enable KCSAN for autogenerated *.mod.c intermediaries X-Git-Tag: microblaze-v6.16~480^2~24 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=1b466b29a3bf02ed95f28682a975f41ae47bce7d;p=linux-2.6-microblaze.git kbuild: re-enable KCSAN for autogenerated *.mod.c intermediaries 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 --- diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index 85d5fadbcc93..542ba462ed3e 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -20,7 +20,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