arm64: module: move find_section to header
authorJoey Gouly <joey.gouly@arm.com>
Tue, 30 Aug 2022 10:48:31 +0000 (11:48 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 Sep 2022 11:27:25 +0000 (12:27 +0100)
commitb3adc3844e1dedd05fa8d09633eaa8ddc5ddcece
treee34bd3354ff0026a95a81c8e88f472167daaf7af
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
arm64: module: move find_section to header

Move it to the header so that the implementation can be shared
by the alternatives code.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220830104833.34636-2-joey.gouly@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/module.h
arch/arm64/kernel/module.c