Skip to content

Commit

Permalink
powerpc/mm: Fix makefile for KASAN
Browse files Browse the repository at this point in the history
In commit 17312f2 ("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: f072015 ("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>
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed May 6, 2019
1 parent 305d600 commit 471e475
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/powerpc/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions arch/powerpc/mm/book3s32/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 471e475

Please sign in to comment.