Skip to content

Commit 20b02fe

Browse files
arndbmathieupoirier
authored andcommitted
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: 8a10651 ("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]>
1 parent 561ced0 commit 20b02fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kernel/cpufeature.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,6 +2843,7 @@ bool this_cpu_has_cap(unsigned int n)
28432843

28442844
return false;
28452845
}
2846+
EXPORT_SYMBOL_GPL(this_cpu_has_cap);
28462847

28472848
/*
28482849
* This helper function is used in a narrow window when,

0 commit comments

Comments
 (0)