Skip to content

Commit b4f944b

Browse files
committed
kbuild: use GCOV_PROFILE and KCSAN_SANITIZE in scripts/Makefile.modfinal
Instead of filtering out the GCOV and KCSAN flags, let's set GCOV_PROFILE and KCSAN_SANITIZE to 'n', as in other Makefiles. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Roberto Sassu <roberto.sassu@huawei.com>
1 parent 7f7f6f7 commit b4f944b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/Makefile.modfinal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ __modfinal: $(modules:%.o=%.ko)
2121
# modname and part-of-module are set to make c_flags define proper module flags
2222
modname = $(notdir $(@:.mod.o=))
2323
part-of-module = y
24+
GCOV_PROFILE := n
25+
KCSAN_SANITIZE := n
2426

2527
quiet_cmd_cc_o_c = CC [M] $@
26-
cmd_cc_o_c = $(CC) $(filter-out $(CC_FLAGS_CFI) $(CFLAGS_GCOV) $(CFLAGS_KCSAN), $(c_flags)) -c -o $@ $<
28+
cmd_cc_o_c = $(CC) $(filter-out $(CC_FLAGS_CFI), $(c_flags)) -c -o $@ $<
2729

2830
%.mod.o: %.mod.c FORCE
2931
$(call if_changed_dep,cc_o_c)

0 commit comments

Comments
 (0)