Skip to content

Commit 99fe83a

Browse files
masahir0yglaubitz
authored andcommitted
sh: vsyscall: Remove unnecessary $(foreach ...)
There is no need to use $(foreach ...) for iterating over just one parameter. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Link: https://lore.kernel.org/r/20231120235423.4103310-1-masahiroy@kernel.org Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
1 parent d87123a commit 99fe83a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/sh/kernel/vsyscall/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0
22
obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
33

4-
$(obj)/vsyscall-syscall.o: \
5-
$(foreach F,trapa,$(obj)/vsyscall-$F.so)
4+
$(obj)/vsyscall-syscall.o: $(obj)/vsyscall-trapa.so
65

76
# Teach kbuild about targets
8-
targets += $(foreach F,trapa,vsyscall-$F.o vsyscall-$F.so)
7+
targets += vsyscall-trapa.o vsyscall-traps.so
98
targets += vsyscall-note.o vsyscall.lds vsyscall-dummy.o
109

1110
# The DSO images are built using a special linker script

0 commit comments

Comments
 (0)