ARM: mcpm, perf/arm-cci: export mcpm_is_available
PATCH 1/1 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.
---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.
--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/common/mcpm_entry.c +2 -0
@@ -9,6 +9,7 @@* published by the Free Software Foundation. */ +#include <linux/export.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/irqflags.h>
@@ -174,6 +175,7 @@ bool mcpm_is_available(void) {return (platform_ops) ? true : false; } +EXPORT_SYMBOL_GPL (mcpm_is_available);/* * We can't use regular spinlocks. In the switcher case, it is possible
Signature · 1 line
2.9.0
Hi Arnd, Russell, [+Nico and Robin]
Quoted 7 lines · Arnd Bergmann
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.
Quoted 8 lines
Fixes 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module")Signed-off-by Arnd Bergmann <[email protected]>---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)
I'm happy to take this via the arm perf tree if others are ok with that. Alternatively, I can revert the offending commit if there are objections to exporting the symbol.
Russell: do you any preference?
Thanks,
Will
Quoted 23 lines
arch/arm/common/mcpm_entry.c +2
-0@@ -9,6 +9,7 @@* published by the Free Software Foundation. */ +#include <linux/export.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/irqflags.h> @@ -174,6 +175,7 @@ bool mcpm_is_available(void) {return (platform_ops) ? true : false; } +EXPORT_SYMBOL_GPL (mcpm_is_available);/* * We can't use regular spinlocks. In the switcher case, it is possible Signature · 1 line
2.9.0
Russell King - ARM Linux
maintainerQuoted 19 lines · Will Deacon
Hi Arnd, Russell, [+Nico and Robin]
Quoted 7 lines · Arnd Bergmann
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.
Quoted 8 lines
Fixes 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module")Signed-off-by Arnd Bergmann <[email protected]>---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 5 lines
I'm happy to take this via the arm perf tree if others are ok with that. Alternatively, I can revert the offending commit if there are objections to exporting the symbol.
Russell: do you any preference?
As it claims to fix 8b0c93c20ef7, which I don't have, I can't take this patch. Do we know which tree has this?
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up
Hi Russell,
Quoted 20 lines · Russell King - ARM Linux
Quoted 19 lines · Will Deacon
Hi Arnd, Russell, [+Nico and Robin]
Quoted 15 lines · Arnd Bergmann
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 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module")Signed-off-by Arnd Bergmann <[email protected]>---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 8 lines
Quoted 5 lines
I'm happy to take this via the arm perf tree if others are ok with that. Alternatively, I can revert the offending commit if there are objections to exporting the symbol.
Russell: do you any preference?
As it claims to fix
8b0c93c20ef7, which I don't have, I can't take this patch. Do we know which tree has this?
Yes, sorry, it's in my for-next/perf branch:
which is now in -next.
I'm happy to take the mcpm patch on top with your ack, but if you have conflicting changes (or would prefer not to export the symbol to modules) then I can just revert the patch in my tree for now.
Will
Quoted 34 lines · Will Deacon
Hi Russell,
Quoted 20 lines · Russell King - ARM Linux
Quoted 19 lines · Will Deacon
Hi Arnd, Russell, [+Nico and Robin]
Quoted 15 lines · Arnd Bergmann
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 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module")Signed-off-by Arnd Bergmann <[email protected]>---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)Quoted 8 lines
Quoted 5 lines
I'm happy to take this via the arm perf tree if others are ok with that. Alternatively, I can revert the offending commit if there are objections to exporting the symbol.
Russell: do you any preference?
As it claims to fix
8b0c93c20ef7, which I don't have, I can't take this patch. Do we know which tree has this?Yes, sorry, it's in my for-next/perf branch:
Quoted 7 lines
which is now in -next.
I'm happy to take the mcpm patch on top with your ack, but if you have conflicting changes (or would prefer not to export the symbol to modules) then I can just revert the patch in my tree for now.
I have no changes to that file, so:
Thanks.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up
Quoted 39 lines · Russell King - ARM Linux
Quoted 38 lines · Will Deacon
Hi Russell,
Quoted 20 lines · Russell King - ARM Linux
Quoted 19 lines · Will Deacon
Hi Arnd, Russell, [+Nico and Robin]
Quoted 15 lines · Arnd Bergmann
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 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module")Signed-off-by Arnd Bergmann <[email protected]>---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)Quoted 8 lines
Quoted 5 lines
I'm happy to take this via the arm perf tree if others are ok with that. Alternatively, I can revert the offending commit if there are objections to exporting the symbol.
Russell: do you any preference?
As it claims to fix
8b0c93c20ef7, which I don't have, I can't take this patch. Do we know which tree has this?Yes, sorry, it's in my for-next/perf branch:
which is now in -next.
Quoted 7 lines
Quoted 3 lines
I'm happy to take the mcpm patch on top with your ack, but if you have conflicting changes (or would prefer not to export the symbol to modules) then I can just revert the patch in my tree for now.
I have no changes to that file, so:
Acked-by Russell King <[email protected]>
Thanks, I've picked up the fix from Arnd with your Ack and will push out this evening.
Will
Nicolas Pitre
Acked-byQuoted 19 lines · Will Deacon
Hi Arnd, Russell, [+Nico and Robin]
Quoted 7 lines · Arnd Bergmann
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.
Quoted 8 lines
Fixes 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module")Signed-off-by Arnd Bergmann <[email protected]>---
The patch that caused this is currently part of the arm-perf/for-next/perf branch, it would be good to have the fix there as well.--- arch/arm/common/mcpm_entry.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 3 lines
I'm happy to take this via the arm perf tree if others are ok with that. Alternatively, I can revert the offending commit if there are objections to exporting the symbol.
Looks fine to me.
Nicolas