Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: remove redundant header search path additions

The same path -Iarch/$(ARCH) is passed to KBUILD_CPPFLAGS,
KBUILD_AFLAGS, and KBUILD_CFLAGS.

As you see in scripts/Makefile.lib, KBUILD_CPPFLAGS is passed
to c_flags and a_flags as well.

Passing it to KBUILD_CPPFLAGS is enough.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Masahiro Yamada and committed by
Michael Ellerman
b00899b8 c142e974

+2 -2
+2 -2
arch/powerpc/Makefile
··· 213 213 asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) 214 214 215 215 KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr) 216 - KBUILD_AFLAGS += -Iarch/$(ARCH) $(AFLAGS-y) 216 + KBUILD_AFLAGS += $(AFLAGS-y) 217 217 KBUILD_CFLAGS += $(call cc-option,-msoft-float) 218 - KBUILD_CFLAGS += -pipe -Iarch/$(ARCH) $(CFLAGS-y) 218 + KBUILD_CFLAGS += -pipe $(CFLAGS-y) 219 219 CPP = $(CC) -E $(KBUILD_CFLAGS) 220 220 221 221 CHECKFLAGS += -m$(BITS) -D__powerpc__ -D__powerpc$(BITS)__