Skip to content

Commit c2386ab

Browse files
committed
kbuild: do not pass -r to genksyms when *.symref does not exist
There is no need to pass '-r /dev/null', which is no-op. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent 8cd07cc commit c2386ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $(obj)/%.i: $(obj)/%.c FORCE
110110
genksyms = $(objtree)/scripts/genksyms/genksyms \
111111
$(if $(1), -T $(2)) \
112112
$(if $(KBUILD_PRESERVE), -p) \
113-
-r $(or $(wildcard $(2:.symtypes=.symref)), /dev/null)
113+
$(addprefix -r , $(wildcard $(2:.symtypes=.symref)))
114114

115115
# These mirror gensymtypes_S and co below, keep them in synch.
116116
cmd_gensymtypes_c = $(CPP) -D__GENKSYMS__ $(c_flags) $< | $(genksyms)

0 commit comments

Comments
 (0)