Skip to content

Commit 01658fe

Browse files
masahir0yglaubitz
authored andcommitted
sh: Refactor header include path addition
Shorten the code. No functional change intended. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Link: https://lore.kernel.org/r/20230219141555.2308306-3-masahiroy@kernel.org Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
1 parent 9b4daf5 commit 01658fe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/sh/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ cpuincdir-y += cpu-common # Must be last
145145

146146
drivers-y += arch/sh/drivers/
147147

148-
cflags-y += $(foreach d, $(cpuincdir-y), -I $(srctree)/arch/sh/include/$(d)) \
149-
$(foreach d, $(machdir-y), -I $(srctree)/arch/sh/include/$(d))
148+
cflags-y += $(addprefix -I $(srctree)/arch/sh/include/, $(cpuincdir-y) $(machdir-y))
150149

151150
KBUILD_CFLAGS += -pipe $(cflags-y)
152151
KBUILD_CPPFLAGS += $(cflags-y)

0 commit comments

Comments
 (0)