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

MIPS: zboot: Consolidate compiler flag filtering.

Al Viro noticed that we were using two different methods to filter out
flags from KBUILD_CFLAGS.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Al Viro <viro@zeniv.linux.org.uk>

+1 -1
+1 -1
arch/mips/boot/compressed/Makefile
··· 18 18 BOOT_HEAP_SIZE := 0x400000 19 19 20 20 # Disable Function Tracer 21 - KBUILD_CFLAGS := $(shell echo $(KBUILD_CFLAGS) | sed -e "s/-pg//") 21 + KBUILD_CFLAGS := $(filter-out -pg, $(KBUILD_CFLAGS)) 22 22 23 23 KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS)) 24 24