---- a/scripts/Makefile.modpost
-+++ b/scripts/Makefile.modpost
-@@ -110,7 +110,14 @@ quiet_cmd_cc_o_c = CC $@
- cmd_cc_o_c = $(CC) $(c_flags) $(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE) \
- -c -o $@ $<
-
--$(modules:.ko=.mod.o): %.mod.o: %.mod.c FORCE
-+quiet_cmd_as_o_S = AS $(quiet_modtag) $@
-+cmd_as_o_S = $(CC) $(a_flags) $(AFLAGS_MODULE) -c -o $@ $<
-+
-+$(KBUILD_LDFLAGS_MODULE_PREREQ): %.o: %.S FORCE
-+ $(Q)mkdir -p $(dir $@)
-+ $(call if_changed_dep,as_o_S)
-+
-+$(modules:.ko=.mod.o): %.mod.o: %.mod.c $(KBUILD_LDFLAGS_MODULE_PREREQ) FORCE
- $(call if_changed_dep,cc_o_c)
-
- targets += $(modules:.ko=.mod.o)
-@@ -119,6 +126,7 @@ targets += $(modules:.ko=.mod.o)
- quiet_cmd_ld_ko_o = LD [M] $@
- cmd_ld_ko_o = $(LD) -r $(LDFLAGS) \
- $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE) \
-+ $(KBUILD_LDFLAGS_MODULE_PREREQ) \
- -o $@ $(filter-out FORCE,$^)
-
- $(modules): %.ko :%.o %.mod.o FORCE