aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/sparc_ksyms_32.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2009-01-08 19:58:05 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-08 19:58:05 -0500
commit6943f3da3e64edd95ee2d33abc0a642357746ba6 (patch)
tree156201055ba46d9bea791aa0cf34903756647e5d /arch/sparc/kernel/sparc_ksyms_32.c
parent45536ffc8dcb7798ff4818f54391547e5af19648 (diff)
sparc: move EXPORT_SYMBOL to the symbols definition
Move all applicable EXPORT_SYMBOL()s to the file where the respective symbol is defined. Removed all the includes that are no longer needed in sparc_ksyms_32.c Comment all remaining EXPORT_SYMBOL()s in sparc_ksyms_32.c Two symbols are shared with sparc64 thus the exports were removed from the sparc_ksyms_64.c too, along with the include their ommission made redundant. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Additions by Julian Calaby: * Moved EXPORT_SYMBOL()s for prom functions to their rightful places. * Made some minor cleanups to the includes and comments of sparc_ksyms_32.c * Made another subtraction from sparc_ksyms_64.c * Updated and tidied commit message. * Rebased patch over sparc-2.6.git HEAD. * Ensured that all modified files have the correct includes. Signed-off-by: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/sparc_ksyms_32.c')
-rw-r--r--arch/sparc/kernel/sparc_ksyms_32.c137
1 files changed, 9 insertions, 128 deletions
diff --git a/arch/sparc/kernel/sparc_ksyms_32.c b/arch/sparc/kernel/sparc_ksyms_32.c
index f4ee14de8dbe..8397871365ad 100644
--- a/arch/sparc/kernel/sparc_ksyms_32.c
+++ b/arch/sparc/kernel/sparc_ksyms_32.c
@@ -9,42 +9,12 @@
9 9
10#include <linux/module.h> 10#include <linux/module.h>
11#include <linux/init.h> 11#include <linux/init.h>
12#include <linux/smp.h>
13#include <linux/types.h>
14#include <linux/sched.h>
15#include <linux/interrupt.h>
16#include <linux/in6.h>
17#include <linux/spinlock.h>
18#include <linux/mm.h>
19#include <linux/syscalls.h>
20#ifdef CONFIG_PCI
21#include <linux/pci.h>
22#endif
23#include <linux/pm.h>
24#ifdef CONFIG_HIGHMEM
25#include <linux/highmem.h>
26#endif
27 12
28#include <asm/oplib.h>
29#include <asm/delay.h>
30#include <asm/system.h>
31#include <asm/auxio.h>
32#include <asm/pgtable.h> 13#include <asm/pgtable.h>
33#include <asm/io.h>
34#include <asm/irq.h>
35#include <asm/idprom.h>
36#include <asm/head.h>
37#include <asm/smp.h>
38#include <asm/ptrace.h>
39#include <asm/uaccess.h> 14#include <asm/uaccess.h>
40#include <asm/checksum.h> 15#include <asm/delay.h>
41#ifdef CONFIG_SBUS 16#include <asm/head.h>
42#include <asm/dma.h> 17#include <asm/dma.h>
43#endif
44#include <asm/io-unit.h>
45#include <asm/bug.h>
46
47extern spinlock_t rtc_lock;
48 18
49struct poll { 19struct poll {
50 int fd; 20 int fd;
@@ -52,29 +22,15 @@ struct poll {
52 short revents; 22 short revents;
53}; 23};
54 24
55/* used by various drivers */ 25/* from entry.S */
56EXPORT_SYMBOL(sparc_cpu_model);
57EXPORT_SYMBOL(kernel_thread);
58
59EXPORT_SYMBOL(sparc_valid_addr_bitmap);
60EXPORT_SYMBOL(phys_base);
61EXPORT_SYMBOL(pfn_base);
62
63/* Per-CPU information table */
64EXPORT_PER_CPU_SYMBOL(__cpu_data);
65
66#ifdef CONFIG_SMP
67/* IRQ implementation. */
68EXPORT_SYMBOL(synchronize_irq);
69#endif
70
71EXPORT_SYMBOL(__udelay); 26EXPORT_SYMBOL(__udelay);
72EXPORT_SYMBOL(__ndelay); 27EXPORT_SYMBOL(__ndelay);
73EXPORT_SYMBOL(rtc_lock);
74EXPORT_SYMBOL(set_auxio);
75EXPORT_SYMBOL(get_auxio);
76EXPORT_SYMBOL(io_remap_pfn_range);
77 28
29/* from head_32.S */
30EXPORT_SYMBOL(__ret_efault);
31EXPORT_SYMBOL(empty_zero_page);
32
33/* Defined using magic */
78#ifndef CONFIG_SMP 34#ifndef CONFIG_SMP
79EXPORT_SYMBOL(BTFIXUP_CALL(___xchg32)); 35EXPORT_SYMBOL(BTFIXUP_CALL(___xchg32));
80#else 36#else
@@ -86,82 +42,7 @@ EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl));
86EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_one)); 42EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_one));
87EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_sgl)); 43EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_sgl));
88EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_one)); 44EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_one));
89
90EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached)); 45EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached));
91 46
92#ifdef CONFIG_SBUS 47/* Exporting a symbol from /init/main.c */
93EXPORT_SYMBOL(sbus_set_sbus64);
94#endif
95#ifdef CONFIG_PCI
96EXPORT_SYMBOL(insb);
97EXPORT_SYMBOL(outsb);
98EXPORT_SYMBOL(insw);
99EXPORT_SYMBOL(outsw);
100EXPORT_SYMBOL(insl);
101EXPORT_SYMBOL(outsl);
102EXPORT_SYMBOL(pci_alloc_consistent);
103EXPORT_SYMBOL(pci_free_consistent);
104EXPORT_SYMBOL(pci_map_single);
105EXPORT_SYMBOL(pci_unmap_single);
106EXPORT_SYMBOL(pci_dma_sync_single_for_cpu);
107EXPORT_SYMBOL(pci_dma_sync_single_for_device);
108EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu);
109EXPORT_SYMBOL(pci_dma_sync_sg_for_device);
110EXPORT_SYMBOL(pci_map_sg);
111EXPORT_SYMBOL(pci_unmap_sg);
112EXPORT_SYMBOL(pci_map_page);
113EXPORT_SYMBOL(pci_unmap_page);
114/* Actually, ioremap/iounmap are not PCI specific. But it is ok for drivers. */
115EXPORT_SYMBOL(ioremap);
116EXPORT_SYMBOL(iounmap);
117#endif
118
119/* in arch/sparc/mm/highmem.c */
120#ifdef CONFIG_HIGHMEM
121EXPORT_SYMBOL(kmap_atomic);
122EXPORT_SYMBOL(kunmap_atomic);
123#endif
124
125/* prom symbols */
126EXPORT_SYMBOL(idprom);
127EXPORT_SYMBOL(prom_root_node);
128EXPORT_SYMBOL(prom_getchild);
129EXPORT_SYMBOL(prom_getsibling);
130EXPORT_SYMBOL(prom_searchsiblings);
131EXPORT_SYMBOL(prom_firstprop);
132EXPORT_SYMBOL(prom_nextprop);
133EXPORT_SYMBOL(prom_getproplen);
134EXPORT_SYMBOL(prom_getproperty);
135EXPORT_SYMBOL(prom_node_has_property);
136EXPORT_SYMBOL(prom_setprop);
137EXPORT_SYMBOL(saved_command_line); 48EXPORT_SYMBOL(saved_command_line);
138EXPORT_SYMBOL(prom_apply_obio_ranges);
139EXPORT_SYMBOL(prom_feval);
140EXPORT_SYMBOL(prom_getbool);
141EXPORT_SYMBOL(prom_getstring);
142EXPORT_SYMBOL(prom_getint);
143EXPORT_SYMBOL(prom_getintdefault);
144EXPORT_SYMBOL(prom_finddevice);
145EXPORT_SYMBOL(romvec);
146EXPORT_SYMBOL(__prom_getchild);
147EXPORT_SYMBOL(__prom_getsibling);
148
149/* sparc library symbols */
150EXPORT_SYMBOL(page_kernel);
151
152/* Cache flushing. */
153EXPORT_SYMBOL(sparc_flush_page_to_ram);
154
155/* For when serial stuff is built as modules. */
156EXPORT_SYMBOL(sun_do_break);
157
158EXPORT_SYMBOL(__ret_efault);
159
160#ifdef CONFIG_DEBUG_BUGVERBOSE
161EXPORT_SYMBOL(do_BUG);
162#endif
163
164/* Sun Power Management Idle Handler */
165EXPORT_SYMBOL(pm_idle);
166
167EXPORT_SYMBOL(empty_zero_page);