* [PATCH] sh: remove unneeded $(foreach )
@ 2023-11-20 23:54 Masahiro Yamada
2024-01-18 15:13 ` John Paul Adrian Glaubitz
2024-01-19 8:18 ` John Paul Adrian Glaubitz
0 siblings, 2 replies; 3+ messages in thread
From: Masahiro Yamada @ 2023-11-20 23:54 UTC (permalink / raw)
To: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz, linux-sh
Cc: Masahiro Yamada, linux-kernel
There is no need to use $(foreach ...) for iterating over just one
parameter.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
arch/sh/kernel/vsyscall/Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/sh/kernel/vsyscall/Makefile b/arch/sh/kernel/vsyscall/Makefile
index 6e8664448048..118744d349e2 100644
--- a/arch/sh/kernel/vsyscall/Makefile
+++ b/arch/sh/kernel/vsyscall/Makefile
@@ -1,11 +1,10 @@
# SPDX-License-Identifier: GPL-2.0
obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
-$(obj)/vsyscall-syscall.o: \
- $(foreach F,trapa,$(obj)/vsyscall-$F.so)
+$(obj)/vsyscall-syscall.o: $(obj)/vsyscall-trapa.so
# Teach kbuild about targets
-targets += $(foreach F,trapa,vsyscall-$F.o vsyscall-$F.so)
+targets += vsyscall-trapa.o vsyscall-traps.so
targets += vsyscall-note.o vsyscall.lds vsyscall-dummy.o
# The DSO images are built using a special linker script
--
2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sh: remove unneeded $(foreach )
2023-11-20 23:54 [PATCH] sh: remove unneeded $(foreach ) Masahiro Yamada
@ 2024-01-18 15:13 ` John Paul Adrian Glaubitz
2024-01-19 8:18 ` John Paul Adrian Glaubitz
1 sibling, 0 replies; 3+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-01-18 15:13 UTC (permalink / raw)
To: Masahiro Yamada, Yoshinori Sato, Rich Felker, linux-sh; +Cc: linux-kernel
On Tue, 2023-11-21 at 08:54 +0900, Masahiro Yamada wrote:
> There is no need to use $(foreach ...) for iterating over just one
> parameter.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> arch/sh/kernel/vsyscall/Makefile | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/arch/sh/kernel/vsyscall/Makefile b/arch/sh/kernel/vsyscall/Makefile
> index 6e8664448048..118744d349e2 100644
> --- a/arch/sh/kernel/vsyscall/Makefile
> +++ b/arch/sh/kernel/vsyscall/Makefile
> @@ -1,11 +1,10 @@
> # SPDX-License-Identifier: GPL-2.0
> obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
>
> -$(obj)/vsyscall-syscall.o: \
> - $(foreach F,trapa,$(obj)/vsyscall-$F.so)
> +$(obj)/vsyscall-syscall.o: $(obj)/vsyscall-trapa.so
>
> # Teach kbuild about targets
> -targets += $(foreach F,trapa,vsyscall-$F.o vsyscall-$F.so)
> +targets += vsyscall-trapa.o vsyscall-traps.so
> targets += vsyscall-note.o vsyscall.lds vsyscall-dummy.o
>
> # The DSO images are built using a special linker script
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sh: remove unneeded $(foreach )
2023-11-20 23:54 [PATCH] sh: remove unneeded $(foreach ) Masahiro Yamada
2024-01-18 15:13 ` John Paul Adrian Glaubitz
@ 2024-01-19 8:18 ` John Paul Adrian Glaubitz
1 sibling, 0 replies; 3+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-01-19 8:18 UTC (permalink / raw)
To: Masahiro Yamada, Yoshinori Sato, Rich Felker, linux-sh; +Cc: linux-kernel
On Tue, 2023-11-21 at 08:54 +0900, Masahiro Yamada wrote:
> There is no need to use $(foreach ...) for iterating over just one
> parameter.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> arch/sh/kernel/vsyscall/Makefile | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/arch/sh/kernel/vsyscall/Makefile b/arch/sh/kernel/vsyscall/Makefile
> index 6e8664448048..118744d349e2 100644
> --- a/arch/sh/kernel/vsyscall/Makefile
> +++ b/arch/sh/kernel/vsyscall/Makefile
> @@ -1,11 +1,10 @@
> # SPDX-License-Identifier: GPL-2.0
> obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
>
> -$(obj)/vsyscall-syscall.o: \
> - $(foreach F,trapa,$(obj)/vsyscall-$F.so)
> +$(obj)/vsyscall-syscall.o: $(obj)/vsyscall-trapa.so
>
> # Teach kbuild about targets
> -targets += $(foreach F,trapa,vsyscall-$F.o vsyscall-$F.so)
> +targets += vsyscall-trapa.o vsyscall-traps.so
> targets += vsyscall-note.o vsyscall.lds vsyscall-dummy.o
>
> # The DSO images are built using a special linker script
Applied to my sh-linux tree.
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-19 8:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-20 23:54 [PATCH] sh: remove unneeded $(foreach ) Masahiro Yamada
2024-01-18 15:13 ` John Paul Adrian Glaubitz
2024-01-19 8:18 ` John Paul Adrian Glaubitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®