[PATCH] [ppc64] add missing EXPORT_SYMBOLS for oprofile

Anton Blanchard anton at samba.org
Tue Aug 17 04:12:38 EST 2004


Add some missing exports, required for oprofile to be compiled as a
module.

Signed-off-by: Anton Blanchard <anton at samba.org>

diff -puN arch/ppc64/kernel/rtas.c~oprofile-4 arch/ppc64/kernel/rtas.c
--- foobar2/arch/ppc64/kernel/rtas.c~oprofile-4	2004-08-16 02:50:42.661849555 +1000
+++ foobar2-anton/arch/ppc64/kernel/rtas.c	2004-08-16 02:50:42.705846173 +1000
@@ -37,6 +37,8 @@ struct rtas_t rtas = {
 	.lock = SPIN_LOCK_UNLOCKED
 };

+EXPORT_SYMBOL(rtas);
+
 char rtas_err_buf[RTAS_ERROR_LOG_MAX];

 spinlock_t rtas_data_buf_lock = SPIN_LOCK_UNLOCKED;
diff -puN arch/ppc64/kernel/smp.c~oprofile-4 arch/ppc64/kernel/smp.c
--- foobar2/arch/ppc64/kernel/smp.c~oprofile-4	2004-08-16 02:50:42.668849017 +1000
+++ foobar2-anton/arch/ppc64/kernel/smp.c	2004-08-16 02:50:42.701846481 +1000
@@ -753,6 +753,8 @@ out:
 	return ret;
 }

+EXPORT_SYMBOL(smp_call_function);
+
 void smp_call_function_interrupt(void)
 {
 	void (*func) (void *info);
diff -puN arch/ppc64/kernel/sysfs.c~oprofile-4 arch/ppc64/kernel/sysfs.c
--- foobar2/arch/ppc64/kernel/sysfs.c~oprofile-4	2004-08-16 02:50:42.674848556 +1000
+++ foobar2-anton/arch/ppc64/kernel/sysfs.c	2004-08-16 02:50:42.706846097 +1000
@@ -5,6 +5,7 @@
 #include <linux/percpu.h>
 #include <linux/init.h>
 #include <linux/sched.h>
+#include <linux/module.h>
 #include <asm/current.h>
 #include <asm/processor.h>
 #include <asm/cputable.h>
@@ -172,6 +173,8 @@ void ppc64_enable_pmcs(void)
 }
 #endif

+EXPORT_SYMBOL(ppc64_enable_pmcs);
+
 /* XXX convert to rusty's on_one_cpu */
 static unsigned long run_on_cpu(unsigned long cpu,
 			        unsigned long (*func)(unsigned long),
diff -puN arch/ppc64/kernel/traps.c~oprofile-4 arch/ppc64/kernel/traps.c
--- foobar2/arch/ppc64/kernel/traps.c~oprofile-4	2004-08-16 02:50:42.680848095 +1000
+++ foobar2-anton/arch/ppc64/kernel/traps.c	2004-08-16 02:50:42.703846327 +1000
@@ -505,6 +505,8 @@ static void dummy_perf(struct pt_regs *r

 void (*perf_irq)(struct pt_regs *) = dummy_perf;

+EXPORT_SYMBOL(perf_irq);
+
 void
 PerformanceMonitorException(struct pt_regs *regs)
 {
_

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list