Skip to content

Commit 6f3c4af

Browse files
Jean-Philippe Bruckerwilldeacon
authored andcommitted
arm64: cpufeature: Export symbol read_sanitised_ftr_reg()
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. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20200918101852.582559-7-jean-philippe@linaro.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent 4811815 commit 6f3c4af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kernel/cpufeature.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,7 @@ u64 read_sanitised_ftr_reg(u32 id)
11111111
return 0;
11121112
return regp->sys_val;
11131113
}
1114+
EXPORT_SYMBOL_GPL(read_sanitised_ftr_reg);
11141115

11151116
#define read_sysreg_case(r) \
11161117
case r: return read_sysreg_s(r)

0 commit comments

Comments
 (0)