Skip to content

Commit

Permalink
MIPS: zboot: Consolidate compiler flag filtering.
Browse files Browse the repository at this point in the history
Al Viro noticed that we were using two different methods to filter out
flags from KBUILD_CFLAGS.

Signed-off-by: Ralf Baechle <[email protected]>
Reported-by: Al Viro <[email protected]>
  • Loading branch information
ralfbaechle committed Jan 3, 2017
1 parent 08d90c8 commit 209ec69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 209ec69

Please sign in to comment.