Commit 73acc031 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Will Deacon

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: 8b0c93c2 ("perf/arm-cci: Allow building as a module")
Acked-by: default avatarNicolas Pitre <nico@linaro.org>
Acked-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 984e9cf1
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/export.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/irqflags.h> #include <linux/irqflags.h>
...@@ -174,6 +175,7 @@ bool mcpm_is_available(void) ...@@ -174,6 +175,7 @@ bool mcpm_is_available(void)
{ {
return (platform_ops) ? true : false; return (platform_ops) ? true : false;
} }
EXPORT_SYMBOL_GPL(mcpm_is_available);
/* /*
* We can't use regular spinlocks. In the switcher case, it is possible * We can't use regular spinlocks. In the switcher case, it is possible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment