Skip to content

Commit 209ec69

Browse files
committed
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 parent 08d90c8 commit 209ec69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/mips/boot/compressed/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include $(srctree)/arch/mips/Kbuild.platforms
1818
BOOT_HEAP_SIZE := 0x400000
1919

2020
# Disable Function Tracer
21-
KBUILD_CFLAGS := $(shell echo $(KBUILD_CFLAGS) | sed -e "s/-pg//")
21+
KBUILD_CFLAGS := $(filter-out -pg, $(KBUILD_CFLAGS))
2222

2323
KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS))
2424

0 commit comments

Comments
 (0)