]> Git Repo - linux.git/commitdiff
arm64: cpufeature: Export this_cpu_has_cap helper
authorArnd Bergmann <[email protected]>
Wed, 3 Nov 2021 22:12:56 +0000 (22:12 +0000)
committerMathieu Poirier <[email protected]>
Thu, 4 Nov 2021 16:46:21 +0000 (10:46 -0600)
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]>
arch/arm64/kernel/cpufeature.c

index 6ec7036ef7e1808eca4b63973cdecf12b0d25c16..1ffda21c9d36c4b6a740c6b979c2a524c8a8d2b8 100644 (file)
@@ -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,
This page took 0.064103 seconds and 4 git commands to generate.