powerpc/mm: Fix makefile for KASAN
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 6 May 2019 06:21:01 +0000 (06:21 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 May 2019 10:21:56 +0000 (20:21 +1000)
In commit 17312f258cf6 ("powerpc/mm: Move book3s32 specifics in
subdirectory mm/book3s64"), ppc_mmu_32.c was moved and renamed.

This patch fixes Makefiles to disable KASAN instrumentation on
the new name and location.

Fixes: f072015c7b74 ("powerpc: disable KASAN instrumentation on early/critical files.")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/Makefile
arch/powerpc/mm/book3s32/Makefile

index d8c0ce9b255767903fba87d24e8f740039c499f0..7a7527116c3ae7779f7b69c70c88af82bb2b171a 100644 (file)
@@ -5,12 +5,6 @@
 
 ccflags-$(CONFIG_PPC64)        := $(NO_MINIMAL_TOC)
 
-KASAN_SANITIZE_ppc_mmu_32.o := n
-
-ifdef CONFIG_KASAN
-CFLAGS_ppc_mmu_32.o            += -DDISABLE_BRANCH_PROFILING
-endif
-
 obj-y                          := fault.o mem.o pgtable.o mmap.o \
                                   init_$(BITS).o pgtable_$(BITS).o \
                                   pgtable-frag.o \
index a4e217d0f3b73ba7be75c61acefc2224df78605d..1732eaa740a99a7ead598033efaa75ec74d3085e 100644 (file)
@@ -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