Skip to content

Commit acf2a13

Browse files
committed
kbuild: modpost: remove unnecessary dependency for __modpost
__modpost is a phony target. The dependency on FORCE is pointless. All the objects have been built in the previous stage, so the dependency on the objects are not necessary either. Count the number of modules in a more straightforward way. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent cb48199 commit acf2a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Makefile.modpost

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ modpost = scripts/mod/modpost \
8686
MODPOST_OPT=$(subst -i,-n,$(filter -i,$(MAKEFLAGS)))
8787

8888
# We can go over command line length here, so be careful.
89-
quiet_cmd_modpost = MODPOST $(words $(filter-out vmlinux FORCE, $^)) modules
89+
quiet_cmd_modpost = MODPOST $(words $(modules)) modules
9090
cmd_modpost = sed 's/ko$$/o/' $(modorder) | $(modpost) $(MODPOST_OPT) -s -T -
9191

9292
PHONY += __modpost
93-
__modpost: $(modules:.ko=.o) FORCE
93+
__modpost:
9494
$(call cmd,modpost) $(wildcard vmlinux)
9595

9696
quiet_cmd_kernel-mod = MODPOST $@

0 commit comments

Comments
 (0)