diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-01-08 19:58:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-08 19:58:05 -0500 |
commit | 6943f3da3e64edd95ee2d33abc0a642357746ba6 (patch) | |
tree | 156201055ba46d9bea791aa0cf34903756647e5d /arch/sparc/kernel | |
parent | 45536ffc8dcb7798ff4818f54391547e5af19648 (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')
-rw-r--r-- | arch/sparc/kernel/auxio_32.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/cpu.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/idprom.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/ioport.c | 15 | ||||
-rw-r--r-- | arch/sparc/kernel/irq_32.c | 1 | ||||
-rw-r--r-- | arch/sparc/kernel/pcic.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/process_32.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/setup_32.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/sparc_ksyms_32.c | 137 | ||||
-rw-r--r-- | arch/sparc/kernel/sparc_ksyms_64.c | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/time_32.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/traps_32.c | 1 |
12 files changed, 46 insertions, 134 deletions
diff --git a/arch/sparc/kernel/auxio_32.c b/arch/sparc/kernel/auxio_32.c index 09c857215a52..45c41232fc4c 100644 --- a/arch/sparc/kernel/auxio_32.c +++ b/arch/sparc/kernel/auxio_32.c | |||
@@ -76,6 +76,7 @@ unsigned char get_auxio(void) | |||
76 | return sbus_readb(auxio_register); | 76 | return sbus_readb(auxio_register); |
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
79 | EXPORT_SYMBOL(get_auxio); | ||
79 | 80 | ||
80 | void set_auxio(unsigned char bits_on, unsigned char bits_off) | 81 | void set_auxio(unsigned char bits_on, unsigned char bits_off) |
81 | { | 82 | { |
@@ -102,7 +103,7 @@ void set_auxio(unsigned char bits_on, unsigned char bits_off) | |||
102 | }; | 103 | }; |
103 | spin_unlock_irqrestore(&auxio_lock, flags); | 104 | spin_unlock_irqrestore(&auxio_lock, flags); |
104 | } | 105 | } |
105 | 106 | EXPORT_SYMBOL(set_auxio); | |
106 | 107 | ||
107 | /* sun4m power control register (AUXIO2) */ | 108 | /* sun4m power control register (AUXIO2) */ |
108 | 109 | ||
diff --git a/arch/sparc/kernel/cpu.c b/arch/sparc/kernel/cpu.c index 6c2da2420f76..f0b825505da5 100644 --- a/arch/sparc/kernel/cpu.c +++ b/arch/sparc/kernel/cpu.c | |||
@@ -5,6 +5,7 @@ | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
8 | #include <linux/module.h> | ||
8 | #include <linux/init.h> | 9 | #include <linux/init.h> |
9 | #include <linux/smp.h> | 10 | #include <linux/smp.h> |
10 | #include <linux/threads.h> | 11 | #include <linux/threads.h> |
@@ -20,6 +21,7 @@ | |||
20 | #include "kernel.h" | 21 | #include "kernel.h" |
21 | 22 | ||
22 | DEFINE_PER_CPU(cpuinfo_sparc, __cpu_data) = { 0 }; | 23 | DEFINE_PER_CPU(cpuinfo_sparc, __cpu_data) = { 0 }; |
24 | EXPORT_PER_CPU_SYMBOL(__cpu_data); | ||
23 | 25 | ||
24 | struct cpu_info { | 26 | struct cpu_info { |
25 | int psr_vers; | 27 | int psr_vers; |
diff --git a/arch/sparc/kernel/idprom.c b/arch/sparc/kernel/idprom.c index c16135e0c151..57922f69c3f7 100644 --- a/arch/sparc/kernel/idprom.c +++ b/arch/sparc/kernel/idprom.c | |||
@@ -8,11 +8,14 @@ | |||
8 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
9 | #include <linux/types.h> | 9 | #include <linux/types.h> |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/module.h> | ||
11 | 12 | ||
12 | #include <asm/oplib.h> | 13 | #include <asm/oplib.h> |
13 | #include <asm/idprom.h> | 14 | #include <asm/idprom.h> |
14 | 15 | ||
15 | struct idprom *idprom; | 16 | struct idprom *idprom; |
17 | EXPORT_SYMBOL(idprom); | ||
18 | |||
16 | static struct idprom idprom_buffer; | 19 | static struct idprom idprom_buffer; |
17 | 20 | ||
18 | #ifdef CONFIG_SPARC32 | 21 | #ifdef CONFIG_SPARC32 |
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 7ce14f05eb48..87ea0d03d975 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c | |||
@@ -120,6 +120,7 @@ void __iomem *ioremap(unsigned long offset, unsigned long size) | |||
120 | sprintf(name, "phys_%08x", (u32)offset); | 120 | sprintf(name, "phys_%08x", (u32)offset); |
121 | return _sparc_alloc_io(0, offset, size, name); | 121 | return _sparc_alloc_io(0, offset, size, name); |
122 | } | 122 | } |
123 | EXPORT_SYMBOL(ioremap); | ||
123 | 124 | ||
124 | /* | 125 | /* |
125 | * Comlimentary to ioremap(). | 126 | * Comlimentary to ioremap(). |
@@ -141,6 +142,7 @@ void iounmap(volatile void __iomem *virtual) | |||
141 | kfree(res); | 142 | kfree(res); |
142 | } | 143 | } |
143 | } | 144 | } |
145 | EXPORT_SYMBOL(iounmap); | ||
144 | 146 | ||
145 | void __iomem *of_ioremap(struct resource *res, unsigned long offset, | 147 | void __iomem *of_ioremap(struct resource *res, unsigned long offset, |
146 | unsigned long size, char *name) | 148 | unsigned long size, char *name) |
@@ -237,6 +239,7 @@ void sbus_set_sbus64(struct device *dev, int x) | |||
237 | { | 239 | { |
238 | printk("sbus_set_sbus64: unsupported\n"); | 240 | printk("sbus_set_sbus64: unsupported\n"); |
239 | } | 241 | } |
242 | EXPORT_SYMBOL(sbus_set_sbus64); | ||
240 | 243 | ||
241 | /* | 244 | /* |
242 | * Allocate a chunk of memory suitable for DMA. | 245 | * Allocate a chunk of memory suitable for DMA. |
@@ -436,6 +439,7 @@ void *pci_alloc_consistent(struct pci_dev *pdev, size_t len, dma_addr_t *pba) | |||
436 | *pba = virt_to_phys(va); /* equals virt_to_bus (R.I.P.) for us. */ | 439 | *pba = virt_to_phys(va); /* equals virt_to_bus (R.I.P.) for us. */ |
437 | return (void *) res->start; | 440 | return (void *) res->start; |
438 | } | 441 | } |
442 | EXPORT_SYMBOL(pci_alloc_consistent); | ||
439 | 443 | ||
440 | /* Free and unmap a consistent DMA buffer. | 444 | /* Free and unmap a consistent DMA buffer. |
441 | * cpu_addr is what was returned from pci_alloc_consistent, | 445 | * cpu_addr is what was returned from pci_alloc_consistent, |
@@ -477,6 +481,7 @@ void pci_free_consistent(struct pci_dev *pdev, size_t n, void *p, dma_addr_t ba) | |||
477 | 481 | ||
478 | free_pages(pgp, get_order(n)); | 482 | free_pages(pgp, get_order(n)); |
479 | } | 483 | } |
484 | EXPORT_SYMBOL(pci_free_consistent); | ||
480 | 485 | ||
481 | /* Map a single buffer of the indicated size for DMA in streaming mode. | 486 | /* Map a single buffer of the indicated size for DMA in streaming mode. |
482 | * The 32-bit bus address to use is returned. | 487 | * The 32-bit bus address to use is returned. |
@@ -491,6 +496,7 @@ dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, | |||
491 | /* IIep is write-through, not flushing. */ | 496 | /* IIep is write-through, not flushing. */ |
492 | return virt_to_phys(ptr); | 497 | return virt_to_phys(ptr); |
493 | } | 498 | } |
499 | EXPORT_SYMBOL(pci_map_single); | ||
494 | 500 | ||
495 | /* Unmap a single streaming mode DMA translation. The dma_addr and size | 501 | /* Unmap a single streaming mode DMA translation. The dma_addr and size |
496 | * must match what was provided for in a previous pci_map_single call. All | 502 | * must match what was provided for in a previous pci_map_single call. All |
@@ -508,6 +514,7 @@ void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t ba, size_t size, | |||
508 | (size + PAGE_SIZE-1) & PAGE_MASK); | 514 | (size + PAGE_SIZE-1) & PAGE_MASK); |
509 | } | 515 | } |
510 | } | 516 | } |
517 | EXPORT_SYMBOL(pci_unmap_single); | ||
511 | 518 | ||
512 | /* | 519 | /* |
513 | * Same as pci_map_single, but with pages. | 520 | * Same as pci_map_single, but with pages. |
@@ -519,6 +526,7 @@ dma_addr_t pci_map_page(struct pci_dev *hwdev, struct page *page, | |||
519 | /* IIep is write-through, not flushing. */ | 526 | /* IIep is write-through, not flushing. */ |
520 | return page_to_phys(page) + offset; | 527 | return page_to_phys(page) + offset; |
521 | } | 528 | } |
529 | EXPORT_SYMBOL(pci_map_page); | ||
522 | 530 | ||
523 | void pci_unmap_page(struct pci_dev *hwdev, | 531 | void pci_unmap_page(struct pci_dev *hwdev, |
524 | dma_addr_t dma_address, size_t size, int direction) | 532 | dma_addr_t dma_address, size_t size, int direction) |
@@ -526,6 +534,7 @@ void pci_unmap_page(struct pci_dev *hwdev, | |||
526 | BUG_ON(direction == PCI_DMA_NONE); | 534 | BUG_ON(direction == PCI_DMA_NONE); |
527 | /* mmu_inval_dma_area XXX */ | 535 | /* mmu_inval_dma_area XXX */ |
528 | } | 536 | } |
537 | EXPORT_SYMBOL(pci_unmap_page); | ||
529 | 538 | ||
530 | /* Map a set of buffers described by scatterlist in streaming | 539 | /* Map a set of buffers described by scatterlist in streaming |
531 | * mode for DMA. This is the scather-gather version of the | 540 | * mode for DMA. This is the scather-gather version of the |
@@ -557,6 +566,7 @@ int pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sgl, int nents, | |||
557 | } | 566 | } |
558 | return nents; | 567 | return nents; |
559 | } | 568 | } |
569 | EXPORT_SYMBOL(pci_map_sg); | ||
560 | 570 | ||
561 | /* Unmap a set of streaming mode DMA translations. | 571 | /* Unmap a set of streaming mode DMA translations. |
562 | * Again, cpu read rules concerning calls here are the same as for | 572 | * Again, cpu read rules concerning calls here are the same as for |
@@ -578,6 +588,7 @@ void pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sgl, int nents, | |||
578 | } | 588 | } |
579 | } | 589 | } |
580 | } | 590 | } |
591 | EXPORT_SYMBOL(pci_unmap_sg); | ||
581 | 592 | ||
582 | /* Make physical memory consistent for a single | 593 | /* Make physical memory consistent for a single |
583 | * streaming mode DMA translation before or after a transfer. | 594 | * streaming mode DMA translation before or after a transfer. |
@@ -597,6 +608,7 @@ void pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t ba, size_t si | |||
597 | (size + PAGE_SIZE-1) & PAGE_MASK); | 608 | (size + PAGE_SIZE-1) & PAGE_MASK); |
598 | } | 609 | } |
599 | } | 610 | } |
611 | EXPORT_SYMBOL(pci_dma_sync_single_for_cpu); | ||
600 | 612 | ||
601 | void pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t ba, size_t size, int direction) | 613 | void pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t ba, size_t size, int direction) |
602 | { | 614 | { |
@@ -606,6 +618,7 @@ void pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t ba, size_t | |||
606 | (size + PAGE_SIZE-1) & PAGE_MASK); | 618 | (size + PAGE_SIZE-1) & PAGE_MASK); |
607 | } | 619 | } |
608 | } | 620 | } |
621 | EXPORT_SYMBOL(pci_dma_sync_single_for_device); | ||
609 | 622 | ||
610 | /* Make physical memory consistent for a set of streaming | 623 | /* Make physical memory consistent for a set of streaming |
611 | * mode DMA translations after a transfer. | 624 | * mode DMA translations after a transfer. |
@@ -628,6 +641,7 @@ void pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sgl, int | |||
628 | } | 641 | } |
629 | } | 642 | } |
630 | } | 643 | } |
644 | EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu); | ||
631 | 645 | ||
632 | void pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sgl, int nents, int direction) | 646 | void pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sgl, int nents, int direction) |
633 | { | 647 | { |
@@ -644,6 +658,7 @@ void pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sgl, | |||
644 | } | 658 | } |
645 | } | 659 | } |
646 | } | 660 | } |
661 | EXPORT_SYMBOL(pci_dma_sync_sg_for_device); | ||
647 | #endif /* CONFIG_PCI */ | 662 | #endif /* CONFIG_PCI */ |
648 | 663 | ||
649 | #ifdef CONFIG_PROC_FS | 664 | #ifdef CONFIG_PROC_FS |
diff --git a/arch/sparc/kernel/irq_32.c b/arch/sparc/kernel/irq_32.c index 1eff942fe22f..44dd5ee64339 100644 --- a/arch/sparc/kernel/irq_32.c +++ b/arch/sparc/kernel/irq_32.c | |||
@@ -294,6 +294,7 @@ void synchronize_irq(unsigned int irq) | |||
294 | while (sparc_irq[cpu_irq].flags & SPARC_IRQ_INPROGRESS) | 294 | while (sparc_irq[cpu_irq].flags & SPARC_IRQ_INPROGRESS) |
295 | cpu_relax(); | 295 | cpu_relax(); |
296 | } | 296 | } |
297 | EXPORT_SYMBOL(synchronize_irq); | ||
297 | #endif /* SMP */ | 298 | #endif /* SMP */ |
298 | 299 | ||
299 | void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs) | 300 | void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs) |
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c index 75ed98be3edf..85e7037429b9 100644 --- a/arch/sparc/kernel/pcic.c +++ b/arch/sparc/kernel/pcic.c | |||
@@ -956,6 +956,7 @@ void outsb(unsigned long addr, const void *src, unsigned long count) | |||
956 | /* addr += 1; */ | 956 | /* addr += 1; */ |
957 | } | 957 | } |
958 | } | 958 | } |
959 | EXPORT_SYMBOL(outsb); | ||
959 | 960 | ||
960 | void outsw(unsigned long addr, const void *src, unsigned long count) | 961 | void outsw(unsigned long addr, const void *src, unsigned long count) |
961 | { | 962 | { |
@@ -966,6 +967,7 @@ void outsw(unsigned long addr, const void *src, unsigned long count) | |||
966 | /* addr += 2; */ | 967 | /* addr += 2; */ |
967 | } | 968 | } |
968 | } | 969 | } |
970 | EXPORT_SYMBOL(outsw); | ||
969 | 971 | ||
970 | void outsl(unsigned long addr, const void *src, unsigned long count) | 972 | void outsl(unsigned long addr, const void *src, unsigned long count) |
971 | { | 973 | { |
@@ -976,6 +978,7 @@ void outsl(unsigned long addr, const void *src, unsigned long count) | |||
976 | /* addr += 4; */ | 978 | /* addr += 4; */ |
977 | } | 979 | } |
978 | } | 980 | } |
981 | EXPORT_SYMBOL(outsl); | ||
979 | 982 | ||
980 | void insb(unsigned long addr, void *dst, unsigned long count) | 983 | void insb(unsigned long addr, void *dst, unsigned long count) |
981 | { | 984 | { |
@@ -986,6 +989,7 @@ void insb(unsigned long addr, void *dst, unsigned long count) | |||
986 | /* addr += 1; */ | 989 | /* addr += 1; */ |
987 | } | 990 | } |
988 | } | 991 | } |
992 | EXPORT_SYMBOL(insb); | ||
989 | 993 | ||
990 | void insw(unsigned long addr, void *dst, unsigned long count) | 994 | void insw(unsigned long addr, void *dst, unsigned long count) |
991 | { | 995 | { |
@@ -996,6 +1000,7 @@ void insw(unsigned long addr, void *dst, unsigned long count) | |||
996 | /* addr += 2; */ | 1000 | /* addr += 2; */ |
997 | } | 1001 | } |
998 | } | 1002 | } |
1003 | EXPORT_SYMBOL(insw); | ||
999 | 1004 | ||
1000 | void insl(unsigned long addr, void *dst, unsigned long count) | 1005 | void insl(unsigned long addr, void *dst, unsigned long count) |
1001 | { | 1006 | { |
@@ -1009,5 +1014,6 @@ void insl(unsigned long addr, void *dst, unsigned long count) | |||
1009 | /* addr += 4; */ | 1014 | /* addr += 4; */ |
1010 | } | 1015 | } |
1011 | } | 1016 | } |
1017 | EXPORT_SYMBOL(insl); | ||
1012 | 1018 | ||
1013 | subsys_initcall(pcic_init); | 1019 | subsys_initcall(pcic_init); |
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c index 5a8d8ced33da..f4bee35a1b46 100644 --- a/arch/sparc/kernel/process_32.c +++ b/arch/sparc/kernel/process_32.c | |||
@@ -44,6 +44,7 @@ | |||
44 | * Set in pm platform drivers (apc.c and pmc.c) | 44 | * Set in pm platform drivers (apc.c and pmc.c) |
45 | */ | 45 | */ |
46 | void (*pm_idle)(void); | 46 | void (*pm_idle)(void); |
47 | EXPORT_SYMBOL(pm_idle); | ||
47 | 48 | ||
48 | /* | 49 | /* |
49 | * Power-off handler instantiation for pm.h compliance | 50 | * Power-off handler instantiation for pm.h compliance |
@@ -673,6 +674,7 @@ pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
673 | "g1", "g2", "g3", "o0", "o1", "memory", "cc"); | 674 | "g1", "g2", "g3", "o0", "o1", "memory", "cc"); |
674 | return retval; | 675 | return retval; |
675 | } | 676 | } |
677 | EXPORT_SYMBOL(kernel_thread); | ||
676 | 678 | ||
677 | unsigned long get_wchan(struct task_struct *task) | 679 | unsigned long get_wchan(struct task_struct *task) |
678 | { | 680 | { |
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index c96c65d1b58b..998cadb4e7f2 100644 --- a/arch/sparc/kernel/setup_32.c +++ b/arch/sparc/kernel/setup_32.c | |||
@@ -199,7 +199,9 @@ extern unsigned short ram_flags; | |||
199 | extern int root_mountflags; | 199 | extern int root_mountflags; |
200 | 200 | ||
201 | char reboot_command[COMMAND_LINE_SIZE]; | 201 | char reboot_command[COMMAND_LINE_SIZE]; |
202 | |||
202 | enum sparc_cpu sparc_cpu_model; | 203 | enum sparc_cpu sparc_cpu_model; |
204 | EXPORT_SYMBOL(sparc_cpu_model); | ||
203 | 205 | ||
204 | struct tt_entry *sparc_ttable; | 206 | struct tt_entry *sparc_ttable; |
205 | 207 | ||
@@ -391,6 +393,7 @@ void sun_do_break(void) | |||
391 | 393 | ||
392 | prom_cmdline(); | 394 | prom_cmdline(); |
393 | } | 395 | } |
396 | EXPORT_SYMBOL(sun_do_break); | ||
394 | 397 | ||
395 | int stop_a_enabled = 1; | 398 | int stop_a_enabled = 1; |
396 | 399 | ||
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 | |||
47 | extern spinlock_t rtc_lock; | ||
48 | 18 | ||
49 | struct poll { | 19 | struct 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 */ |
56 | EXPORT_SYMBOL(sparc_cpu_model); | ||
57 | EXPORT_SYMBOL(kernel_thread); | ||
58 | |||
59 | EXPORT_SYMBOL(sparc_valid_addr_bitmap); | ||
60 | EXPORT_SYMBOL(phys_base); | ||
61 | EXPORT_SYMBOL(pfn_base); | ||
62 | |||
63 | /* Per-CPU information table */ | ||
64 | EXPORT_PER_CPU_SYMBOL(__cpu_data); | ||
65 | |||
66 | #ifdef CONFIG_SMP | ||
67 | /* IRQ implementation. */ | ||
68 | EXPORT_SYMBOL(synchronize_irq); | ||
69 | #endif | ||
70 | |||
71 | EXPORT_SYMBOL(__udelay); | 26 | EXPORT_SYMBOL(__udelay); |
72 | EXPORT_SYMBOL(__ndelay); | 27 | EXPORT_SYMBOL(__ndelay); |
73 | EXPORT_SYMBOL(rtc_lock); | ||
74 | EXPORT_SYMBOL(set_auxio); | ||
75 | EXPORT_SYMBOL(get_auxio); | ||
76 | EXPORT_SYMBOL(io_remap_pfn_range); | ||
77 | 28 | ||
29 | /* from head_32.S */ | ||
30 | EXPORT_SYMBOL(__ret_efault); | ||
31 | EXPORT_SYMBOL(empty_zero_page); | ||
32 | |||
33 | /* Defined using magic */ | ||
78 | #ifndef CONFIG_SMP | 34 | #ifndef CONFIG_SMP |
79 | EXPORT_SYMBOL(BTFIXUP_CALL(___xchg32)); | 35 | EXPORT_SYMBOL(BTFIXUP_CALL(___xchg32)); |
80 | #else | 36 | #else |
@@ -86,82 +42,7 @@ EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_sgl)); | |||
86 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_one)); | 42 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_get_scsi_one)); |
87 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_sgl)); | 43 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_sgl)); |
88 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_one)); | 44 | EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_one)); |
89 | |||
90 | EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached)); | 45 | EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached)); |
91 | 46 | ||
92 | #ifdef CONFIG_SBUS | 47 | /* Exporting a symbol from /init/main.c */ |
93 | EXPORT_SYMBOL(sbus_set_sbus64); | ||
94 | #endif | ||
95 | #ifdef CONFIG_PCI | ||
96 | EXPORT_SYMBOL(insb); | ||
97 | EXPORT_SYMBOL(outsb); | ||
98 | EXPORT_SYMBOL(insw); | ||
99 | EXPORT_SYMBOL(outsw); | ||
100 | EXPORT_SYMBOL(insl); | ||
101 | EXPORT_SYMBOL(outsl); | ||
102 | EXPORT_SYMBOL(pci_alloc_consistent); | ||
103 | EXPORT_SYMBOL(pci_free_consistent); | ||
104 | EXPORT_SYMBOL(pci_map_single); | ||
105 | EXPORT_SYMBOL(pci_unmap_single); | ||
106 | EXPORT_SYMBOL(pci_dma_sync_single_for_cpu); | ||
107 | EXPORT_SYMBOL(pci_dma_sync_single_for_device); | ||
108 | EXPORT_SYMBOL(pci_dma_sync_sg_for_cpu); | ||
109 | EXPORT_SYMBOL(pci_dma_sync_sg_for_device); | ||
110 | EXPORT_SYMBOL(pci_map_sg); | ||
111 | EXPORT_SYMBOL(pci_unmap_sg); | ||
112 | EXPORT_SYMBOL(pci_map_page); | ||
113 | EXPORT_SYMBOL(pci_unmap_page); | ||
114 | /* Actually, ioremap/iounmap are not PCI specific. But it is ok for drivers. */ | ||
115 | EXPORT_SYMBOL(ioremap); | ||
116 | EXPORT_SYMBOL(iounmap); | ||
117 | #endif | ||
118 | |||
119 | /* in arch/sparc/mm/highmem.c */ | ||
120 | #ifdef CONFIG_HIGHMEM | ||
121 | EXPORT_SYMBOL(kmap_atomic); | ||
122 | EXPORT_SYMBOL(kunmap_atomic); | ||
123 | #endif | ||
124 | |||
125 | /* prom symbols */ | ||
126 | EXPORT_SYMBOL(idprom); | ||
127 | EXPORT_SYMBOL(prom_root_node); | ||
128 | EXPORT_SYMBOL(prom_getchild); | ||
129 | EXPORT_SYMBOL(prom_getsibling); | ||
130 | EXPORT_SYMBOL(prom_searchsiblings); | ||
131 | EXPORT_SYMBOL(prom_firstprop); | ||
132 | EXPORT_SYMBOL(prom_nextprop); | ||
133 | EXPORT_SYMBOL(prom_getproplen); | ||
134 | EXPORT_SYMBOL(prom_getproperty); | ||
135 | EXPORT_SYMBOL(prom_node_has_property); | ||
136 | EXPORT_SYMBOL(prom_setprop); | ||
137 | EXPORT_SYMBOL(saved_command_line); | 48 | EXPORT_SYMBOL(saved_command_line); |
138 | EXPORT_SYMBOL(prom_apply_obio_ranges); | ||
139 | EXPORT_SYMBOL(prom_feval); | ||
140 | EXPORT_SYMBOL(prom_getbool); | ||
141 | EXPORT_SYMBOL(prom_getstring); | ||
142 | EXPORT_SYMBOL(prom_getint); | ||
143 | EXPORT_SYMBOL(prom_getintdefault); | ||
144 | EXPORT_SYMBOL(prom_finddevice); | ||
145 | EXPORT_SYMBOL(romvec); | ||
146 | EXPORT_SYMBOL(__prom_getchild); | ||
147 | EXPORT_SYMBOL(__prom_getsibling); | ||
148 | |||
149 | /* sparc library symbols */ | ||
150 | EXPORT_SYMBOL(page_kernel); | ||
151 | |||
152 | /* Cache flushing. */ | ||
153 | EXPORT_SYMBOL(sparc_flush_page_to_ram); | ||
154 | |||
155 | /* For when serial stuff is built as modules. */ | ||
156 | EXPORT_SYMBOL(sun_do_break); | ||
157 | |||
158 | EXPORT_SYMBOL(__ret_efault); | ||
159 | |||
160 | #ifdef CONFIG_DEBUG_BUGVERBOSE | ||
161 | EXPORT_SYMBOL(do_BUG); | ||
162 | #endif | ||
163 | |||
164 | /* Sun Power Management Idle Handler */ | ||
165 | EXPORT_SYMBOL(pm_idle); | ||
166 | |||
167 | EXPORT_SYMBOL(empty_zero_page); | ||
diff --git a/arch/sparc/kernel/sparc_ksyms_64.c b/arch/sparc/kernel/sparc_ksyms_64.c index 09874eaf0fb6..62b5a91cd6b9 100644 --- a/arch/sparc/kernel/sparc_ksyms_64.c +++ b/arch/sparc/kernel/sparc_ksyms_64.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <asm/pgtable.h> | 29 | #include <asm/pgtable.h> |
30 | #include <asm/io.h> | 30 | #include <asm/io.h> |
31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
32 | #include <asm/idprom.h> | ||
33 | #include <asm/elf.h> | 32 | #include <asm/elf.h> |
34 | #include <asm/head.h> | 33 | #include <asm/head.h> |
35 | #include <asm/smp.h> | 34 | #include <asm/smp.h> |
@@ -67,9 +66,6 @@ extern int __ashrdi3(int, int); | |||
67 | 66 | ||
68 | extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs); | 67 | extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs); |
69 | 68 | ||
70 | /* Per-CPU information table */ | ||
71 | EXPORT_PER_CPU_SYMBOL(__cpu_data); | ||
72 | |||
73 | /* used by various drivers */ | 69 | /* used by various drivers */ |
74 | #ifdef CONFIG_SMP | 70 | #ifdef CONFIG_SMP |
75 | /* Out of line rw-locking implementation. */ | 71 | /* Out of line rw-locking implementation. */ |
@@ -134,7 +130,6 @@ EXPORT_SYMBOL(die_if_kernel); | |||
134 | EXPORT_SYMBOL(kernel_thread); | 130 | EXPORT_SYMBOL(kernel_thread); |
135 | 131 | ||
136 | /* prom symbols */ | 132 | /* prom symbols */ |
137 | EXPORT_SYMBOL(idprom); | ||
138 | EXPORT_SYMBOL(prom_root_node); | 133 | EXPORT_SYMBOL(prom_root_node); |
139 | EXPORT_SYMBOL(prom_getchild); | 134 | EXPORT_SYMBOL(prom_getchild); |
140 | EXPORT_SYMBOL(prom_getsibling); | 135 | EXPORT_SYMBOL(prom_getsibling); |
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c index 00f7383c7657..614ac7b4a9dd 100644 --- a/arch/sparc/kernel/time_32.c +++ b/arch/sparc/kernel/time_32.c | |||
@@ -48,6 +48,8 @@ | |||
48 | #include "irq.h" | 48 | #include "irq.h" |
49 | 49 | ||
50 | DEFINE_SPINLOCK(rtc_lock); | 50 | DEFINE_SPINLOCK(rtc_lock); |
51 | EXPORT_SYMBOL(rtc_lock); | ||
52 | |||
51 | static int set_rtc_mmss(unsigned long); | 53 | static int set_rtc_mmss(unsigned long); |
52 | static int sbus_do_settimeofday(struct timespec *tv); | 54 | static int sbus_do_settimeofday(struct timespec *tv); |
53 | 55 | ||
diff --git a/arch/sparc/kernel/traps_32.c b/arch/sparc/kernel/traps_32.c index 213645be6e92..358283341b47 100644 --- a/arch/sparc/kernel/traps_32.c +++ b/arch/sparc/kernel/traps_32.c | |||
@@ -424,6 +424,7 @@ void do_BUG(const char *file, int line) | |||
424 | // bust_spinlocks(1); XXX Not in our original BUG() | 424 | // bust_spinlocks(1); XXX Not in our original BUG() |
425 | printk("kernel BUG at %s:%d!\n", file, line); | 425 | printk("kernel BUG at %s:%d!\n", file, line); |
426 | } | 426 | } |
427 | EXPORT_SYMBOL(do_BUG); | ||
427 | #endif | 428 | #endif |
428 | 429 | ||
429 | /* Since we have our mappings set up, on multiprocessors we can spin them | 430 | /* Since we have our mappings set up, on multiprocessors we can spin them |