x86/mm/encrypt: Move page table helpers into separate translation unit
[sfrench/cifs-2.6.git] / arch / x86 / mm / Makefile
index 27e9e90a8d3572b900ccaacae1623de803072b17..03c6c8561623dd5315a935e7d7cf3e1677493a55 100644 (file)
@@ -1,12 +1,15 @@
 # SPDX-License-Identifier: GPL-2.0
-# Kernel does not boot with instrumentation of tlb.c and mem_encrypt.c
-KCOV_INSTRUMENT_tlb.o          := n
-KCOV_INSTRUMENT_mem_encrypt.o  := n
+# Kernel does not boot with instrumentation of tlb.c and mem_encrypt*.c
+KCOV_INSTRUMENT_tlb.o                  := n
+KCOV_INSTRUMENT_mem_encrypt.o          := n
+KCOV_INSTRUMENT_mem_encrypt_identity.o := n
 
-KASAN_SANITIZE_mem_encrypt.o   := n
+KASAN_SANITIZE_mem_encrypt.o           := n
+KASAN_SANITIZE_mem_encrypt_identity.o  := n
 
 ifdef CONFIG_FUNCTION_TRACER
-CFLAGS_REMOVE_mem_encrypt.o    = -pg
+CFLAGS_REMOVE_mem_encrypt.o            = -pg
+CFLAGS_REMOVE_mem_encrypt_identity.o   = -pg
 endif
 
 obj-y  :=  init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
@@ -47,4 +50,5 @@ obj-$(CONFIG_RANDOMIZE_MEMORY)                        += kaslr.o
 obj-$(CONFIG_PAGE_TABLE_ISOLATION)             += pti.o
 
 obj-$(CONFIG_AMD_MEM_ENCRYPT)  += mem_encrypt.o
+obj-$(CONFIG_AMD_MEM_ENCRYPT)  += mem_encrypt_identity.o
 obj-$(CONFIG_AMD_MEM_ENCRYPT)  += mem_encrypt_boot.o