]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Export this_cpu_has_cap helper
authorArnd Bergmann <arnd@arndb.de>
Wed, 3 Nov 2021 22:12:56 +0000 (22:12 +0000)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 4 Nov 2021 16:46:21 +0000 (10:46 -0600)
commit3ef03e627e9a4d3d154a2e7cfb06e972cb66aa31
tree0aef6faad95e4db38632204b9e332a3802fcd48d
parent008772da304696c8733b2490984502387d80eed5
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: a28530d5aa28 ("coresight: trbe: Add infrastructure for Errata handling")
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[ change to EXPORT_SYMBOL_GPL ]
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
[ Added Will AB tag]
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20211103221256.725080-1-suzuki.poulose@arm.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
arch/arm64/kernel/cpufeature.c