summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/vdso64/Makefile
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-09-07 17:45:37 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-09-14 10:30:07 +0200
commit4bf3ec384edf0bf893ec7bd62ccebb635b02efd9 (patch)
treec7cd889be045b56dfca6319dfbccc999ea1f6baf /arch/s390/kernel/vdso64/Makefile
parents390: convert to GENERIC_VDSO (diff)
downloadlinux-4bf3ec384edf0bf893ec7bd62ccebb635b02efd9.tar.xz
linux-4bf3ec384edf0bf893ec7bd62ccebb635b02efd9.zip
s390: disable branch profiling for vdso
When branch profiling is enabled, if () gets annotated with code to instrument the hit/miss ratio. This doesn't work for VDSO as we can't access kernel code. Add -DDISABLE_BRANCH_PROFILING to fix this. Reported-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/vdso64/Makefile')
-rw-r--r--arch/s390/kernel/vdso64/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/vdso64/Makefile b/arch/s390/kernel/vdso64/Makefile
index f1c0570780d1..3d3303283181 100644
--- a/arch/s390/kernel/vdso64/Makefile
+++ b/arch/s390/kernel/vdso64/Makefile
@@ -17,7 +17,7 @@ obj-vdso64 := $(addprefix $(obj)/, $(obj-vdso64))
obj-cvdso64 := $(addprefix $(obj)/, $(obj-cvdso64))
KBUILD_AFLAGS += -DBUILD_VDSO
-KBUILD_CFLAGS += -DBUILD_VDSO
+KBUILD_CFLAGS += -DBUILD_VDSO -DDISABLE_BRANCH_PROFILING
KBUILD_AFLAGS_64 := $(filter-out -m64,$(KBUILD_AFLAGS))
KBUILD_AFLAGS_64 += -m64 -s