All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: export get_c0_perfcount_int()
@ 2015-07-23 16:59 Felix Fietkau
  2015-07-28 10:15 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2015-07-23 16:59 UTC (permalink / raw)
  To: linux-mips; +Cc: abrestic, ralf

get_c0_perfcount_int is tested from oprofile code. If oprofile is
compiled as module, get_c0_perfcount_int needs to be exported, otherwise
it cannot be resolved.

Fixes: a669efc4a3b4 ("MIPS: Add hook to get C0 performance counter interrupt")
Cc: stable@vger.kernel.org # v3.19+
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 arch/mips/ath79/setup.c          | 1 +
 arch/mips/lantiq/irq.c           | 1 +
 arch/mips/mti-malta/malta-time.c | 1 +
 arch/mips/mti-sead3/sead3-time.c | 1 +
 arch/mips/pistachio/time.c       | 1 +
 arch/mips/ralink/irq.c           | 1 +
 6 files changed, 6 insertions(+)

diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index 01a644f..1ba2120 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -190,6 +190,7 @@ int get_c0_perfcount_int(void)
 {
 	return ATH79_MISC_IRQ(5);
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index 6ab1057..d01ade6 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -466,6 +466,7 @@ int get_c0_perfcount_int(void)
 {
 	return ltq_perfcount_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c
index 5625b19..e1bd9ed 100644
--- a/arch/mips/mti-malta/malta-time.c
+++ b/arch/mips/mti-malta/malta-time.c
@@ -154,6 +154,7 @@ int get_c0_perfcount_int(void)
 
 	return mips_cpu_perf_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
diff --git a/arch/mips/mti-sead3/sead3-time.c b/arch/mips/mti-sead3/sead3-time.c
index e1d6989..a120b7a 100644
--- a/arch/mips/mti-sead3/sead3-time.c
+++ b/arch/mips/mti-sead3/sead3-time.c
@@ -77,6 +77,7 @@ int get_c0_perfcount_int(void)
 		return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq;
 	return -1;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
diff --git a/arch/mips/pistachio/time.c b/arch/mips/pistachio/time.c
index 7c73fcb..8a37734 100644
--- a/arch/mips/pistachio/time.c
+++ b/arch/mips/pistachio/time.c
@@ -26,6 +26,7 @@ int get_c0_perfcount_int(void)
 {
 	return gic_get_c0_perfcount_int();
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 int get_c0_fdc_int(void)
 {
diff --git a/arch/mips/ralink/irq.c b/arch/mips/ralink/irq.c
index 53707aa..8c624a8 100644
--- a/arch/mips/ralink/irq.c
+++ b/arch/mips/ralink/irq.c
@@ -89,6 +89,7 @@ int get_c0_perfcount_int(void)
 {
 	return rt_perfcount_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
-- 
2.2.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: export get_c0_perfcount_int()
  2015-07-23 16:59 [PATCH] MIPS: export get_c0_perfcount_int() Felix Fietkau
@ 2015-07-28 10:15 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2015-07-28 10:15 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: linux-mips, abrestic

On Thu, Jul 23, 2015 at 06:59:52PM +0200, Felix Fietkau wrote:
> Date:   Thu, 23 Jul 2015 18:59:52 +0200
> From: Felix Fietkau <nbd@openwrt.org>
> To: linux-mips@linux-mips.org
> Cc: abrestic@chromium.org, ralf@linux-mips.org
> Subject: [PATCH] MIPS: export get_c0_perfcount_int()
> 
> get_c0_perfcount_int is tested from oprofile code. If oprofile is
> compiled as module, get_c0_perfcount_int needs to be exported, otherwise
> it cannot be resolved.
> 
> Fixes: a669efc4a3b4 ("MIPS: Add hook to get C0 performance counter interrupt")
> Cc: stable@vger.kernel.org # v3.19+

You didn't actually cc this email to stable@vger.kernel.org.

> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> ---
>  arch/mips/ath79/setup.c          | 1 +
>  arch/mips/lantiq/irq.c           | 1 +
>  arch/mips/mti-malta/malta-time.c | 1 +
>  arch/mips/mti-sead3/sead3-time.c | 1 +
>  arch/mips/pistachio/time.c       | 1 +

Pistachio was merged for 4.1 so this patch won't apply to older kernels.
You may also want to submit a separate version for those -stable kernels.

Applied.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-28 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 16:59 [PATCH] MIPS: export get_c0_perfcount_int() Felix Fietkau
2015-07-28 10:15 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.