riscv: mm: stub extable related functions/macros for !MMU
authorJisheng Zhang <jszhang@kernel.org>
Tue, 9 May 2023 15:26:41 +0000 (23:26 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 14 Jun 2023 14:17:45 +0000 (07:17 -0700)
commitde658bcf03339561572e5dad3ec8ecedd1256747
treeb6e96b384269f9f8ad4edadc9fc185d0695e4b5e
parentc818fea83de4cdf5072c7cf00dd289fc9c6e1c68
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>
arch/riscv/include/asm/asm-extable.h
arch/riscv/include/asm/extable.h
arch/riscv/mm/Makefile