summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/book3s32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/book3s32/Makefile')
-rw-r--r--arch/powerpc/mm/book3s32/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/mm/book3s32/Makefile b/arch/powerpc/mm/book3s32/Makefile
index a4e217d0f3b7..1732eaa740a9 100644
--- a/arch/powerpc/mm/book3s32/Makefile
+++ b/arch/powerpc/mm/book3s32/Makefile
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: GPL-2.0
+KASAN_SANITIZE_mmu.o := n
+
+ifdef CONFIG_KASAN
+CFLAGS_mmu.o += -DDISABLE_BRANCH_PROFILING
+endif
+
obj-y += mmu.o hash_low.o mmu_context.o tlb.o