[PATCH v10 06/13] arm64: cpufeature: Export symbol read_sanitised_ftr_reg()

Jean-Philippe Brucker jean-philippe at linaro.org
Fri Sep 18 06:18:46 EDT 2020

The SMMUv3 driver would like to read the MMFR0 PARANGE field in order to
share CPU page tables with devices. Allow the driver to be built as
module by exporting the read_sanitized_ftr_reg() cpufeature symbol.

Acked-by: Suzuki K Poulose <suzuki.poulose at arm.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe at linaro.org>
 arch/arm64/kernel/cpufeature.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 6424584be01e..07f10ad8855c 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1111,6 +1111,7 @@ u64 read_sanitised_ftr_reg(u32 id)
 		return 0;
 	return regp->sys_val;
 #define read_sysreg_case(r)	\
 	case r:		return read_sysreg_s(r)

More information about the linux-arm-kernel mailing list