Skip to contentSkip to conversation

refactor generic EXPORT_SYMBOLs

PATCH New Jan Kiszka 1 participant 1 message Jan 21, 2008 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 refactor generic EXPORT_SYMBOLs

The exported symbols below are not specific to x86 or any other arch, just their implementation is. So let's move them into generic ipipe.c.

Jan

---
 arch/x86/kernel/ipipe.c |    9 ---------
 kernel/ipipe/core.c     |   10 ++++++++++
 2 files changed, 10 insertions(+), 9 deletions(-)
arch/x86/kernel/ipipe.c +0 -9
Index: linux-2.6.24-rc8-xeno_64/arch/x86/kernel/ipipe.c
===================================================================
@@ -975,10 +975,6 @@ int __ipipe_check_tickdev(const char *de
 }
 
 EXPORT_SYMBOL(__ipipe_tick_irq);
-EXPORT_SYMBOL(ipipe_critical_enter);
-EXPORT_SYMBOL(ipipe_critical_exit);
-EXPORT_SYMBOL(ipipe_trigger_irq);
-EXPORT_SYMBOL(ipipe_get_sysinfo);
 
 EXPORT_SYMBOL_GPL(irq_desc);
 struct task_struct *__switch_to(struct task_struct *prev_p,
@@ -998,8 +994,3 @@ EXPORT_SYMBOL_GPL(cpu_gdt_descr);
 #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
 EXPORT_SYMBOL(tasklist_lock);
 #endif /* CONFIG_SMP || CONFIG_DEBUG_SPINLOCK */
-
-#ifdef CONFIG_IPIPE_TRACE_MCOUNT
-void notrace mcount(void);
-EXPORT_SYMBOL(mcount);
-#endif /* CONFIG_IPIPE_TRACE_MCOUNT */
kernel/ipipe/core.c +10 -0
Index: linux-2.6.24-rc8-xeno_64/kernel/ipipe/core.c
===================================================================
@@ -1624,3 +1624,13 @@ EXPORT_SYMBOL(__ipipe_schedule_irq);
 EXPORT_SYMBOL(ipipe_request_tickdev);
 EXPORT_SYMBOL(ipipe_release_tickdev);
 #endif
+
+EXPORT_SYMBOL(ipipe_critical_enter);
+EXPORT_SYMBOL(ipipe_critical_exit);
+EXPORT_SYMBOL(ipipe_trigger_irq);
+EXPORT_SYMBOL(ipipe_get_sysinfo);
+
+#ifdef CONFIG_IPIPE_TRACE_MCOUNT
+void notrace mcount(void);
+EXPORT_SYMBOL(mcount);
+#endif /* CONFIG_IPIPE_TRACE_MCOUNT */
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux