diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2023-05-09 18:26:41 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-06-14 17:17:45 +0300 |
commit | de658bcf03339561572e5dad3ec8ecedd1256747 (patch) | |
tree | b6e96b384269f9f8ad4edadc9fc185d0695e4b5e /arch/riscv/mm/Makefile | |
parent | c818fea83de4cdf5072c7cf00dd289fc9c6e1c68 (diff) | |
download | linux-de658bcf03339561572e5dad3ec8ecedd1256747.tar.xz |
riscv: mm: stub extable related functions/macros for !MMU
extable relies on the MMU to work properly, so it's useless to
include __ex_table sections and build extable related functions for
!MMU case.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20230509152641.805-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/mm/Makefile')
-rw-r--r-- | arch/riscv/mm/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index b85e9e82f082..9c454f90fd3d 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -13,8 +13,7 @@ endif KCOV_INSTRUMENT_init.o := n obj-y += init.o -obj-y += extable.o -obj-$(CONFIG_MMU) += fault.o pageattr.o +obj-$(CONFIG_MMU) += extable.o fault.o pageattr.o obj-y += cacheflush.o obj-y += context.o obj-y += pgtable.o |