mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
kbuild: run the checker after the compiler
Since the pre-git time the checker is run first, before the compiler. But if the source file contains some syntax error, the warnings from the compiler are more useful than those from sparse (and other checker most probably too). So move the 'check' command to run after the compiler. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
dcb7fd82c7
commit
0c33f12573
@ -252,9 +252,9 @@ cmd_gen_ksymdeps = \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
define rule_cc_o_c
|
define rule_cc_o_c
|
||||||
$(call cmd,checksrc)
|
|
||||||
$(call cmd_and_fixdep,cc_o_c)
|
$(call cmd_and_fixdep,cc_o_c)
|
||||||
$(call cmd,gen_ksymdeps)
|
$(call cmd,gen_ksymdeps)
|
||||||
|
$(call cmd,checksrc)
|
||||||
$(call cmd,checkdoc)
|
$(call cmd,checkdoc)
|
||||||
$(call cmd,objtool)
|
$(call cmd,objtool)
|
||||||
$(call cmd,modversions_c)
|
$(call cmd,modversions_c)
|
||||||
@ -277,8 +277,8 @@ endif
|
|||||||
|
|
||||||
# Built-in and composite module parts
|
# Built-in and composite module parts
|
||||||
$(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE
|
$(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE
|
||||||
$(call cmd,force_checksrc)
|
|
||||||
$(call if_changed_rule,cc_o_c)
|
$(call if_changed_rule,cc_o_c)
|
||||||
|
$(call cmd,force_checksrc)
|
||||||
|
|
||||||
cmd_mod = { \
|
cmd_mod = { \
|
||||||
echo $(if $($*-objs)$($*-y)$($*-m), $(addprefix $(obj)/, $($*-objs) $($*-y) $($*-m)), $(@:.mod=.o)); \
|
echo $(if $($*-objs)$($*-y)$($*-m), $(addprefix $(obj)/, $($*-objs) $($*-y) $($*-m)), $(@:.mod=.o)); \
|
||||||
|
Loading…
Reference in New Issue
Block a user