Skip to content

Commit 9086e60

Browse files
committed
parisc: Add missing FORCE prerequisites in Makefile
Fix those make warnings: arch/parisc/kernel/vdso32/Makefile:30: FORCE prerequisite is missing arch/parisc/kernel/vdso64/Makefile:30: FORCE prerequisite is missing Add the missing FORCE prerequisites for all build targets identified by "make help". Fixes: e1f86d7 ("kbuild: warn if FORCE is missing for if_changed(_dep,_rule) and filechk") Signed-off-by: Helge Deller <[email protected]> Cc: <[email protected]> # 5.18+
1 parent 4add395 commit 9086e60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/parisc/kernel/vdso32/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(obj)/vdso32_wrapper.o : $(obj)/vdso32.so FORCE
2626

2727
# Force dependency (incbin is bad)
2828
# link rule for the .so file, .lds has to be first
29-
$(obj)/vdso32.so: $(src)/vdso32.lds $(obj-vdso32) $(obj-cvdso32) $(VDSO_LIBGCC)
29+
$(obj)/vdso32.so: $(src)/vdso32.lds $(obj-vdso32) $(obj-cvdso32) $(VDSO_LIBGCC) FORCE
3030
$(call if_changed,vdso32ld)
3131

3232
# assembly rules for the .S files
@@ -38,7 +38,7 @@ $(obj-cvdso32): %.o: %.c FORCE
3838

3939
# actual build commands
4040
quiet_cmd_vdso32ld = VDSO32L $@
41-
cmd_vdso32ld = $(CROSS32CC) $(c_flags) -Wl,-T $^ -o $@
41+
cmd_vdso32ld = $(CROSS32CC) $(c_flags) -Wl,-T $(filter-out FORCE, $^) -o $@
4242
quiet_cmd_vdso32as = VDSO32A $@
4343
cmd_vdso32as = $(CROSS32CC) $(a_flags) -c -o $@ $<
4444
quiet_cmd_vdso32cc = VDSO32C $@

arch/parisc/kernel/vdso64/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so FORCE
2626

2727
# Force dependency (incbin is bad)
2828
# link rule for the .so file, .lds has to be first
29-
$(obj)/vdso64.so: $(src)/vdso64.lds $(obj-vdso64) $(VDSO_LIBGCC)
29+
$(obj)/vdso64.so: $(src)/vdso64.lds $(obj-vdso64) $(VDSO_LIBGCC) FORCE
3030
$(call if_changed,vdso64ld)
3131

3232
# assembly rules for the .S files
@@ -35,7 +35,7 @@ $(obj-vdso64): %.o: %.S FORCE
3535

3636
# actual build commands
3737
quiet_cmd_vdso64ld = VDSO64L $@
38-
cmd_vdso64ld = $(CC) $(c_flags) -Wl,-T $^ -o $@
38+
cmd_vdso64ld = $(CC) $(c_flags) -Wl,-T $(filter-out FORCE, $^) -o $@
3939
quiet_cmd_vdso64as = VDSO64A $@
4040
cmd_vdso64as = $(CC) $(a_flags) -c -o $@ $<
4141

0 commit comments

Comments
 (0)