Skip to content

Commit 73acc03

Browse files
arndbwildea01
authored andcommitted
ARM: mcpm, perf/arm-cci: export mcpm_is_available
Now that the ARM CCI PMU driver can be built as a loadable module, we get a link failure when MCPM is enabled: ERROR: "mcpm_is_available" [drivers/perf/arm-cci.ko] undefined! The simplest fix is to export that helper function. Fixes: 8b0c93c ("perf/arm-cci: Allow building as a module") Acked-by: Nicolas Pitre <[email protected]> Acked-by: Russell King <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 984e9cf commit 73acc03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/common/mcpm_entry.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* published by the Free Software Foundation.
1010
*/
1111

12+
#include <linux/export.h>
1213
#include <linux/kernel.h>
1314
#include <linux/init.h>
1415
#include <linux/irqflags.h>
@@ -174,6 +175,7 @@ bool mcpm_is_available(void)
174175
{
175176
return (platform_ops) ? true : false;
176177
}
178+
EXPORT_SYMBOL_GPL(mcpm_is_available);
177179

178180
/*
179181
* We can't use regular spinlocks. In the switcher case, it is possible

0 commit comments

Comments
 (0)