Commit e1802b06 authored by Anton Blanchard's avatar Anton Blanchard Committed by Michael Ellerman

powerpc: Move more symbol exports next to function definitions

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 4a1b08e8
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#include <linux/elfcore.h> #include <linux/elfcore.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/screen_info.h>
#include <linux/vt_kern.h> #include <linux/vt_kern.h>
#include <linux/nvram.h> #include <linux/nvram.h>
#include <linux/irq.h> #include <linux/irq.h>
...@@ -96,8 +95,6 @@ EXPORT_SYMBOL(isa_mem_base); ...@@ -96,8 +95,6 @@ EXPORT_SYMBOL(isa_mem_base);
EXPORT_SYMBOL(pci_dram_offset); EXPORT_SYMBOL(pci_dram_offset);
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
EXPORT_SYMBOL(start_thread);
#ifdef CONFIG_PPC_FPU #ifdef CONFIG_PPC_FPU
EXPORT_SYMBOL(giveup_fpu); EXPORT_SYMBOL(giveup_fpu);
EXPORT_SYMBOL(load_fp_state); EXPORT_SYMBOL(load_fp_state);
...@@ -109,7 +106,6 @@ EXPORT_SYMBOL(load_vr_state); ...@@ -109,7 +106,6 @@ EXPORT_SYMBOL(load_vr_state);
EXPORT_SYMBOL(store_vr_state); EXPORT_SYMBOL(store_vr_state);
#endif /* CONFIG_ALTIVEC */ #endif /* CONFIG_ALTIVEC */
#ifdef CONFIG_VSX #ifdef CONFIG_VSX
EXPORT_SYMBOL(giveup_vsx);
EXPORT_SYMBOL_GPL(__giveup_vsx); EXPORT_SYMBOL_GPL(__giveup_vsx);
#endif /* CONFIG_VSX */ #endif /* CONFIG_VSX */
#ifdef CONFIG_SPE #ifdef CONFIG_SPE
...@@ -128,8 +124,6 @@ EXPORT_SYMBOL(smp_hw_index); ...@@ -128,8 +124,6 @@ EXPORT_SYMBOL(smp_hw_index);
#endif #endif
#endif #endif
EXPORT_SYMBOL(to_tm);
#ifdef CONFIG_PPC32 #ifdef CONFIG_PPC32
long long __ashrdi3(long long, int); long long __ashrdi3(long long, int);
long long __ashldi3(long long, int); long long __ashldi3(long long, int);
...@@ -150,10 +144,6 @@ EXPORT_SYMBOL(memmove); ...@@ -150,10 +144,6 @@ EXPORT_SYMBOL(memmove);
EXPORT_SYMBOL(memcmp); EXPORT_SYMBOL(memcmp);
EXPORT_SYMBOL(memchr); EXPORT_SYMBOL(memchr);
#if defined(CONFIG_FB_VGA16_MODULE)
EXPORT_SYMBOL(screen_info);
#endif
#ifdef CONFIG_PPC32 #ifdef CONFIG_PPC32
EXPORT_SYMBOL(timer_interrupt); EXPORT_SYMBOL(timer_interrupt);
EXPORT_SYMBOL(tb_ticks_per_jiffy); EXPORT_SYMBOL(tb_ticks_per_jiffy);
...@@ -189,10 +179,6 @@ EXPORT_SYMBOL(__arch_hweight32); ...@@ -189,10 +179,6 @@ EXPORT_SYMBOL(__arch_hweight32);
EXPORT_SYMBOL(__arch_hweight64); EXPORT_SYMBOL(__arch_hweight64);
#endif #endif
#ifdef CONFIG_PPC_BOOK3S_64
EXPORT_SYMBOL_GPL(mmu_psize_defs);
#endif
#ifdef CONFIG_EPAPR_PARAVIRT #ifdef CONFIG_EPAPR_PARAVIRT
EXPORT_SYMBOL(epapr_hypercall_start); EXPORT_SYMBOL(epapr_hypercall_start);
#endif #endif
...@@ -228,6 +228,7 @@ void giveup_vsx(struct task_struct *tsk) ...@@ -228,6 +228,7 @@ void giveup_vsx(struct task_struct *tsk)
giveup_altivec_maybe_transactional(tsk); giveup_altivec_maybe_transactional(tsk);
__giveup_vsx(tsk); __giveup_vsx(tsk);
} }
EXPORT_SYMBOL(giveup_vsx);
void flush_vsx_to_thread(struct task_struct *tsk) void flush_vsx_to_thread(struct task_struct *tsk)
{ {
...@@ -1316,6 +1317,7 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp) ...@@ -1316,6 +1317,7 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
current->thread.tm_tfiar = 0; current->thread.tm_tfiar = 0;
#endif /* CONFIG_PPC_TRANSACTIONAL_MEM */ #endif /* CONFIG_PPC_TRANSACTIONAL_MEM */
} }
EXPORT_SYMBOL(start_thread);
#define PR_FP_ALL_EXCEPT (PR_FP_EXC_DIV | PR_FP_EXC_OVF | PR_FP_EXC_UND \ #define PR_FP_ALL_EXCEPT (PR_FP_EXC_DIV | PR_FP_EXC_OVF | PR_FP_EXC_UND \
| PR_FP_EXC_RES | PR_FP_EXC_INV) | PR_FP_EXC_RES | PR_FP_EXC_INV)
......
...@@ -94,6 +94,9 @@ struct screen_info screen_info = { ...@@ -94,6 +94,9 @@ struct screen_info screen_info = {
.orig_video_isVGA = 1, .orig_video_isVGA = 1,
.orig_video_points = 16 .orig_video_points = 16
}; };
#if defined(CONFIG_FB_VGA16_MODULE)
EXPORT_SYMBOL(screen_info);
#endif
/* Variables required to store legacy IO irq routing */ /* Variables required to store legacy IO irq routing */
int of_i8042_kbd_irq; int of_i8042_kbd_irq;
......
...@@ -1024,6 +1024,7 @@ void to_tm(int tim, struct rtc_time * tm) ...@@ -1024,6 +1024,7 @@ void to_tm(int tim, struct rtc_time * tm)
*/ */
GregorianDay(tm); GregorianDay(tm);
} }
EXPORT_SYMBOL(to_tm);
/* /*
* Divide a 128-bit dividend by a 32-bit divisor, leaving a 128 bit * Divide a 128-bit dividend by a 32-bit divisor, leaving a 128 bit
......
...@@ -92,6 +92,7 @@ extern unsigned long dart_tablebase; ...@@ -92,6 +92,7 @@ extern unsigned long dart_tablebase;
static unsigned long _SDR1; static unsigned long _SDR1;
struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
EXPORT_SYMBOL_GPL(mmu_psize_defs);
struct hash_pte *htab_address; struct hash_pte *htab_address;
unsigned long htab_size_bytes; unsigned long htab_size_bytes;
......
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