OSDN Git Service

riscv: module: move find_section to module.h
authorJisheng Zhang <jszhang@kernel.org>
Sat, 28 Jan 2023 17:28:50 +0000 (01:28 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Feb 2023 07:29:39 +0000 (23:29 -0800)
commite0c267e03b0c77c9ac79ac08eada41ba8eb1b95f
tree71262cfd5cf6aa2409ec0d3e15968fc31e33cadd
parent702e64550b12cf36089672af8f110660da7f847e
riscv: module: move find_section to module.h

Move find_section() to module.h so that the implementation can be shared
by the alternatives code. This will allow us to use alternatives in
the vdso.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20230128172856.3814-8-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/module.h
arch/riscv/kernel/module.c