Linux kbuild/kconfig development
 help / color / mirror / Atom feed
* [PATCH 1/2] kbuild: do not pass -r to genksyms when *.symref does not exist
@ 2024-11-11 17:17 Masahiro Yamada
  2024-11-11 17:17 ` [PATCH 2/2] kbuild: remove support for single %.symtypes build rule Masahiro Yamada
  2024-11-14 10:56 ` [PATCH 1/2] kbuild: do not pass -r to genksyms when *.symref does not exist Nicolas Schier
  0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2024-11-11 17:17 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Masahiro Yamada, Nathan Chancellor, Nicolas Schier, linux-kernel

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 --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)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-14 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 17:17 [PATCH 1/2] kbuild: do not pass -r to genksyms when *.symref does not exist Masahiro Yamada
2024-11-11 17:17 ` [PATCH 2/2] kbuild: remove support for single %.symtypes build rule Masahiro Yamada
2024-11-14 10:57   ` Nicolas Schier
2024-11-14 10:56 ` [PATCH 1/2] kbuild: do not pass -r to genksyms when *.symref does not exist Nicolas Schier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox