Skip to content

Commit

Permalink
kbuild: do not pass -r to genksyms when *.symref does not exist
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masahir0y committed Nov 27, 2024
1 parent 8cd07cc commit c2386ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ $(obj)/%.i: $(obj)/%.c FORCE
genksyms = $(objtree)/scripts/genksyms/genksyms \
$(if $(1), -T $(2)) \
$(if $(KBUILD_PRESERVE), -p) \
-r $(or $(wildcard $(2:.symtypes=.symref)), /dev/null)
$(addprefix -r , $(wildcard $(2:.symtypes=.symref)))

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

0 comments on commit c2386ab

Please sign in to comment.