diff mbox series

[1/2] kbuild: do not pass -r to genksyms when *.symref does not exist

Message ID 20241111171753.2917697-1-masahiroy@kernel.org (mailing list archive)
State New
Headers show
Series [1/2] kbuild: do not pass -r to genksyms when *.symref does not exist | expand

Commit Message

Masahiro Yamada Nov. 11, 2024, 5:17 p.m. UTC
There is no need to passĀ '-r /dev/null', which is no-op.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 scripts/Makefile.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 8f423a1faf50..36eae845a3e3 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -110,7 +110,7 @@  $(obj)/%.i: $(obj)/%.c FORCE
 genksyms = 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)