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 <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent 9b4daf5 commit 01658fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)