summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2016-12-26 21:57:52 +0300
committerRalf Baechle <ralf@linux-mips.org>2017-01-03 18:48:40 +0300
commit209ec69ab3cd81f1577c5af39f7b07a168cd28bc (patch)
treebb216cfe796d5dd4100e6ba13580074828253554 /arch
parent08d90c81b714482dceb5323d14f6617bcf55ee61 (diff)
downloadlinux-209ec69ab3cd81f1577c5af39f7b07a168cd28bc.tar.xz
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/boot/compressed/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index 41564a4db6f7..c675eece389a 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -18,7 +18,7 @@ include $(srctree)/arch/mips/Kbuild.platforms
BOOT_HEAP_SIZE := 0x400000
# Disable Function Tracer
-KBUILD_CFLAGS := $(shell echo $(KBUILD_CFLAGS) | sed -e "s/-pg//")
+KBUILD_CFLAGS := $(filter-out -pg, $(KBUILD_CFLAGS))
KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS))