From: Arnd Bergmann Date: Tue, 26 May 2015 14:39:36 +0000 (+0100) Subject: ARM: 8373/1: disable branch profiling in uncompressor X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8c36a75748d0208e41e6fe7817c631ac8075eeef;p=linux.git ARM: 8373/1: disable branch profiling in uncompressor The branch profiling code cannot work outside of the main kernel and just causes link errors if we try to use it in the decompressor. Disabling it here matches what we do for other architectures. Signed-off-by: Arnd Bergmann Signed-off-by: Russell King --- diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 6e1fb2b2ecc75..7a13aebacf81d 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -103,6 +103,8 @@ extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \ lib1funcs.S ashldi3.S bswapsdi2.S $(libfdt) $(libfdt_hdrs) \ hyp-stub.S +KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING + ifeq ($(CONFIG_FUNCTION_TRACER),y) ORIG_CFLAGS := $(KBUILD_CFLAGS) KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))