diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2023-05-09 23:26:41 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-06-14 07:17:45 -0700 |
commit | de658bcf03339561572e5dad3ec8ecedd1256747 (patch) | |
tree | b6e96b384269f9f8ad4edadc9fc185d0695e4b5e /arch/riscv/mm | |
parent | c818fea83de4cdf5072c7cf00dd289fc9c6e1c68 (diff) | |
download | linux-stable-de658bcf03339561572e5dad3ec8ecedd1256747.tar.gz linux-stable-de658bcf03339561572e5dad3ec8ecedd1256747.tar.bz2 linux-stable-de658bcf03339561572e5dad3ec8ecedd1256747.zip |
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')
-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 |