diff options
author | Arnd Bergmann <[email protected]> | 2021-11-03 22:12:56 +0000 |
---|---|---|
committer | Mathieu Poirier <[email protected]> | 2021-11-04 10:46:21 -0600 |
commit | 20b02fe36530a1e48dde73c80b882ae276346ea3 (patch) | |
tree | 0aef6faad95e4db38632204b9e332a3802fcd48d | |
parent | 561ced0bb90a4be298b7db5fb54f29731d74a3f6 (diff) |
arm64: cpufeature: Export this_cpu_has_cap helper
Export the this_cpu_has_cap() for use by modules. This is
used by TRBE driver. Without this patch, TRBE will fail
to build as a module :
ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined!
Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling")
Cc: Will Deacon <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
[ change to EXPORT_SYMBOL_GPL ]
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
[ Added Will AB tag]
Acked-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>
-rw-r--r-- | arch/arm64/kernel/cpufeature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 6ec7036ef7e1..1ffda21c9d36 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -2843,6 +2843,7 @@ bool this_cpu_has_cap(unsigned int n) return false; } +EXPORT_SYMBOL_GPL(this_cpu_has_cap); /* * This helper function is used in a narrow window when, |