mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
946bb33d33
The cache ops are also used by the pmem code which is unconditionally
built into the kernel. Move them into a separate file that is built
based on the correct config option.
Fixes: fd96278127
("riscv: RISCV_NONSTANDARD_CACHE_OPS shouldn't depend on RISCV_DMA_NONCOHERENT")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> #
Link: https://lore.kernel.org/r/20231028155101.1039049-1-hch@lst.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
40 lines
909 B
Makefile
40 lines
909 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
CFLAGS_init.o := -mcmodel=medany
|
|
ifdef CONFIG_RELOCATABLE
|
|
CFLAGS_init.o += -fno-pie
|
|
endif
|
|
|
|
ifdef CONFIG_FTRACE
|
|
CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE)
|
|
CFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE)
|
|
endif
|
|
|
|
KCOV_INSTRUMENT_init.o := n
|
|
|
|
obj-y += init.o
|
|
obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o
|
|
obj-y += cacheflush.o
|
|
obj-y += context.o
|
|
obj-y += pgtable.o
|
|
obj-y += pmem.o
|
|
|
|
ifeq ($(CONFIG_MMU),y)
|
|
obj-$(CONFIG_SMP) += tlbflush.o
|
|
endif
|
|
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
|
|
obj-$(CONFIG_PTDUMP_CORE) += ptdump.o
|
|
obj-$(CONFIG_KASAN) += kasan_init.o
|
|
|
|
ifdef CONFIG_KASAN
|
|
KASAN_SANITIZE_kasan_init.o := n
|
|
KASAN_SANITIZE_init.o := n
|
|
ifdef CONFIG_DEBUG_VIRTUAL
|
|
KASAN_SANITIZE_physaddr.o := n
|
|
endif
|
|
endif
|
|
|
|
obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o
|
|
obj-$(CONFIG_RISCV_DMA_NONCOHERENT) += dma-noncoherent.o
|
|
obj-$(CONFIG_RISCV_NONSTANDARD_CACHE_OPS) += cache-ops.o
|