diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-11 12:40:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:17:07 -0400 |
commit | cff52daffa080eff6353f44df418b080dacefb96 (patch) | |
tree | 57745a059733794b7e48dd45d459b0a97385fc67 /arch/alpha/kernel | |
parent | 9ab6a45394715918b025f2d3b799477295af4cc0 (diff) |
[PATCH] alpha_ksyms.c cleanup
taken exports to actual definitions of symbols being exported.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/alpha/kernel')
-rw-r--r-- | arch/alpha/kernel/alpha_ksyms.c | 93 | ||||
-rw-r--r-- | arch/alpha/kernel/core_irongate.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/irq_alpha.c | 3 | ||||
-rw-r--r-- | arch/alpha/kernel/pci-noop.c | 1 | ||||
-rw-r--r-- | arch/alpha/kernel/pci_iommu.c | 17 | ||||
-rw-r--r-- | arch/alpha/kernel/process.c | 5 | ||||
-rw-r--r-- | arch/alpha/kernel/setup.c | 6 | ||||
-rw-r--r-- | arch/alpha/kernel/smp.c | 8 | ||||
-rw-r--r-- | arch/alpha/kernel/time.c | 1 |
9 files changed, 42 insertions, 94 deletions
diff --git a/arch/alpha/kernel/alpha_ksyms.c b/arch/alpha/kernel/alpha_ksyms.c index 8b02420f732e..692809e4aece 100644 --- a/arch/alpha/kernel/alpha_ksyms.c +++ b/arch/alpha/kernel/alpha_ksyms.c | |||
@@ -6,41 +6,14 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <linux/module.h> | 8 | #include <linux/module.h> |
9 | #include <linux/string.h> | ||
10 | #include <linux/user.h> | ||
11 | #include <linux/elfcore.h> | ||
12 | #include <linux/socket.h> | ||
13 | #include <linux/syscalls.h> | ||
14 | #include <linux/in.h> | ||
15 | #include <linux/in6.h> | ||
16 | #include <linux/pci.h> | ||
17 | #include <linux/screen_info.h> | ||
18 | #include <linux/tty.h> | ||
19 | #include <linux/mm.h> | ||
20 | #include <linux/delay.h> | ||
21 | #include <linux/dma-mapping.h> | ||
22 | |||
23 | #include <asm/io.h> | ||
24 | #include <asm/console.h> | 9 | #include <asm/console.h> |
25 | #include <asm/hwrpb.h> | ||
26 | #include <asm/uaccess.h> | 10 | #include <asm/uaccess.h> |
27 | #include <asm/processor.h> | ||
28 | #include <asm/checksum.h> | 11 | #include <asm/checksum.h> |
29 | #include <linux/interrupt.h> | ||
30 | #include <asm/fpu.h> | 12 | #include <asm/fpu.h> |
31 | #include <asm/irq.h> | ||
32 | #include <asm/machvec.h> | 13 | #include <asm/machvec.h> |
33 | #include <asm/pgalloc.h> | ||
34 | #include <asm/semaphore.h> | ||
35 | #include <asm/tlbflush.h> | ||
36 | #include <asm/cacheflush.h> | ||
37 | #include <asm/vga.h> | ||
38 | 14 | ||
39 | #include <asm/unistd.h> | 15 | #include <asm/unistd.h> |
40 | 16 | ||
41 | extern struct hwrpb_struct *hwrpb; | ||
42 | extern spinlock_t rtc_lock; | ||
43 | |||
44 | /* these are C runtime functions with special calling conventions: */ | 17 | /* these are C runtime functions with special calling conventions: */ |
45 | extern void __divl (void); | 18 | extern void __divl (void); |
46 | extern void __reml (void); | 19 | extern void __reml (void); |
@@ -52,14 +25,9 @@ extern void __divqu (void); | |||
52 | extern void __remqu (void); | 25 | extern void __remqu (void); |
53 | 26 | ||
54 | EXPORT_SYMBOL(alpha_mv); | 27 | EXPORT_SYMBOL(alpha_mv); |
55 | EXPORT_SYMBOL(screen_info); | ||
56 | EXPORT_SYMBOL(perf_irq); | ||
57 | EXPORT_SYMBOL(callback_getenv); | 28 | EXPORT_SYMBOL(callback_getenv); |
58 | EXPORT_SYMBOL(callback_setenv); | 29 | EXPORT_SYMBOL(callback_setenv); |
59 | EXPORT_SYMBOL(callback_save_env); | 30 | EXPORT_SYMBOL(callback_save_env); |
60 | #ifdef CONFIG_ALPHA_GENERIC | ||
61 | EXPORT_SYMBOL(alpha_using_srm); | ||
62 | #endif /* CONFIG_ALPHA_GENERIC */ | ||
63 | 31 | ||
64 | /* platform dependent support */ | 32 | /* platform dependent support */ |
65 | EXPORT_SYMBOL(strcat); | 33 | EXPORT_SYMBOL(strcat); |
@@ -77,47 +45,14 @@ EXPORT_SYMBOL(__constant_c_memset); | |||
77 | EXPORT_SYMBOL(copy_page); | 45 | EXPORT_SYMBOL(copy_page); |
78 | EXPORT_SYMBOL(clear_page); | 46 | EXPORT_SYMBOL(clear_page); |
79 | 47 | ||
80 | EXPORT_SYMBOL(__direct_map_base); | ||
81 | EXPORT_SYMBOL(__direct_map_size); | ||
82 | |||
83 | #ifdef CONFIG_PCI | ||
84 | EXPORT_SYMBOL(pci_alloc_consistent); | ||
85 | EXPORT_SYMBOL(pci_free_consistent); | ||
86 | EXPORT_SYMBOL(pci_map_single); | ||
87 | EXPORT_SYMBOL(pci_map_page); | ||
88 | EXPORT_SYMBOL(pci_unmap_single); | ||
89 | EXPORT_SYMBOL(pci_unmap_page); | ||
90 | EXPORT_SYMBOL(pci_map_sg); | ||
91 | EXPORT_SYMBOL(pci_unmap_sg); | ||
92 | EXPORT_SYMBOL(pci_dma_supported); | ||
93 | EXPORT_SYMBOL(pci_dac_dma_supported); | ||
94 | EXPORT_SYMBOL(pci_dac_page_to_dma); | ||
95 | EXPORT_SYMBOL(pci_dac_dma_to_page); | ||
96 | EXPORT_SYMBOL(pci_dac_dma_to_offset); | ||
97 | EXPORT_SYMBOL(alpha_gendev_to_pci); | ||
98 | #endif | ||
99 | EXPORT_SYMBOL(dma_set_mask); | ||
100 | |||
101 | EXPORT_SYMBOL(dump_thread); | ||
102 | EXPORT_SYMBOL(dump_elf_thread); | ||
103 | EXPORT_SYMBOL(dump_elf_task); | ||
104 | EXPORT_SYMBOL(dump_elf_task_fp); | ||
105 | EXPORT_SYMBOL(hwrpb); | ||
106 | EXPORT_SYMBOL(start_thread); | ||
107 | EXPORT_SYMBOL(alpha_read_fp_reg); | 48 | EXPORT_SYMBOL(alpha_read_fp_reg); |
108 | EXPORT_SYMBOL(alpha_read_fp_reg_s); | 49 | EXPORT_SYMBOL(alpha_read_fp_reg_s); |
109 | EXPORT_SYMBOL(alpha_write_fp_reg); | 50 | EXPORT_SYMBOL(alpha_write_fp_reg); |
110 | EXPORT_SYMBOL(alpha_write_fp_reg_s); | 51 | EXPORT_SYMBOL(alpha_write_fp_reg_s); |
111 | 52 | ||
112 | /* In-kernel system calls. */ | 53 | /* entry.S */ |
113 | EXPORT_SYMBOL(kernel_thread); | 54 | EXPORT_SYMBOL(kernel_thread); |
114 | EXPORT_SYMBOL(sys_dup); | ||
115 | EXPORT_SYMBOL(sys_exit); | ||
116 | EXPORT_SYMBOL(sys_write); | ||
117 | EXPORT_SYMBOL(sys_lseek); | ||
118 | EXPORT_SYMBOL(kernel_execve); | 55 | EXPORT_SYMBOL(kernel_execve); |
119 | EXPORT_SYMBOL(sys_setsid); | ||
120 | EXPORT_SYMBOL(sys_wait4); | ||
121 | 56 | ||
122 | /* Networking helper routines. */ | 57 | /* Networking helper routines. */ |
123 | EXPORT_SYMBOL(csum_tcpudp_magic); | 58 | EXPORT_SYMBOL(csum_tcpudp_magic); |
@@ -134,10 +69,6 @@ EXPORT_SYMBOL(alpha_fp_emul_imprecise); | |||
134 | EXPORT_SYMBOL(alpha_fp_emul); | 69 | EXPORT_SYMBOL(alpha_fp_emul); |
135 | #endif | 70 | #endif |
136 | 71 | ||
137 | #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK | ||
138 | EXPORT_SYMBOL(__min_ipl); | ||
139 | #endif | ||
140 | |||
141 | /* | 72 | /* |
142 | * The following are specially called from the uaccess assembly stubs. | 73 | * The following are specially called from the uaccess assembly stubs. |
143 | */ | 74 | */ |
@@ -160,27 +91,10 @@ EXPORT_SYMBOL(up); | |||
160 | */ | 91 | */ |
161 | 92 | ||
162 | #ifdef CONFIG_SMP | 93 | #ifdef CONFIG_SMP |
163 | EXPORT_SYMBOL(flush_tlb_mm); | ||
164 | EXPORT_SYMBOL(flush_tlb_range); | ||
165 | EXPORT_SYMBOL(flush_tlb_page); | ||
166 | EXPORT_SYMBOL(smp_imb); | ||
167 | EXPORT_SYMBOL(cpu_data); | ||
168 | EXPORT_SYMBOL(smp_num_cpus); | ||
169 | EXPORT_SYMBOL(smp_call_function); | ||
170 | EXPORT_SYMBOL(smp_call_function_on_cpu); | ||
171 | EXPORT_SYMBOL(_atomic_dec_and_lock); | 94 | EXPORT_SYMBOL(_atomic_dec_and_lock); |
172 | #endif /* CONFIG_SMP */ | 95 | #endif /* CONFIG_SMP */ |
173 | 96 | ||
174 | /* | 97 | /* |
175 | * NUMA specific symbols | ||
176 | */ | ||
177 | #ifdef CONFIG_DISCONTIGMEM | ||
178 | EXPORT_SYMBOL(node_data); | ||
179 | #endif /* CONFIG_DISCONTIGMEM */ | ||
180 | |||
181 | EXPORT_SYMBOL(rtc_lock); | ||
182 | |||
183 | /* | ||
184 | * The following are special because they're not called | 98 | * The following are special because they're not called |
185 | * explicitly (the C compiler or assembler generates them in | 99 | * explicitly (the C compiler or assembler generates them in |
186 | * response to division operations). Fortunately, their | 100 | * response to division operations). Fortunately, their |
@@ -200,8 +114,3 @@ EXPORT_SYMBOL(__remqu); | |||
200 | EXPORT_SYMBOL(memcpy); | 114 | EXPORT_SYMBOL(memcpy); |
201 | EXPORT_SYMBOL(memset); | 115 | EXPORT_SYMBOL(memset); |
202 | EXPORT_SYMBOL(memchr); | 116 | EXPORT_SYMBOL(memchr); |
203 | |||
204 | #ifdef CONFIG_ALPHA_IRONGATE | ||
205 | EXPORT_SYMBOL(irongate_ioremap); | ||
206 | EXPORT_SYMBOL(irongate_iounmap); | ||
207 | #endif | ||
diff --git a/arch/alpha/kernel/core_irongate.c b/arch/alpha/kernel/core_irongate.c index 138d497d1cca..e4a0bcf1d28b 100644 --- a/arch/alpha/kernel/core_irongate.c +++ b/arch/alpha/kernel/core_irongate.c | |||
@@ -404,6 +404,7 @@ irongate_ioremap(unsigned long addr, unsigned long size) | |||
404 | #endif | 404 | #endif |
405 | return (void __iomem *)vaddr; | 405 | return (void __iomem *)vaddr; |
406 | } | 406 | } |
407 | EXPORT_SYMBOL(irongate_ioremap); | ||
407 | 408 | ||
408 | void | 409 | void |
409 | irongate_iounmap(volatile void __iomem *xaddr) | 410 | irongate_iounmap(volatile void __iomem *xaddr) |
@@ -414,3 +415,4 @@ irongate_iounmap(volatile void __iomem *xaddr) | |||
414 | if (addr) | 415 | if (addr) |
415 | return vfree((void *)(PAGE_MASK & addr)); | 416 | return vfree((void *)(PAGE_MASK & addr)); |
416 | } | 417 | } |
418 | EXPORT_SYMBOL(irongate_iounmap); | ||
diff --git a/arch/alpha/kernel/irq_alpha.c b/arch/alpha/kernel/irq_alpha.c index 6dd126b8be85..e16aeb6e79ef 100644 --- a/arch/alpha/kernel/irq_alpha.c +++ b/arch/alpha/kernel/irq_alpha.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | #include <linux/irq.h> | 7 | #include <linux/irq.h> |
8 | #include <linux/kernel_stat.h> | 8 | #include <linux/kernel_stat.h> |
9 | #include <linux/module.h> | ||
9 | 10 | ||
10 | #include <asm/machvec.h> | 11 | #include <asm/machvec.h> |
11 | #include <asm/dma.h> | 12 | #include <asm/dma.h> |
@@ -16,6 +17,7 @@ | |||
16 | /* Hack minimum IPL during interrupt processing for broken hardware. */ | 17 | /* Hack minimum IPL during interrupt processing for broken hardware. */ |
17 | #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK | 18 | #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK |
18 | int __min_ipl; | 19 | int __min_ipl; |
20 | EXPORT_SYMBOL(__min_ipl); | ||
19 | #endif | 21 | #endif |
20 | 22 | ||
21 | /* | 23 | /* |
@@ -30,6 +32,7 @@ dummy_perf(unsigned long vector, struct pt_regs *regs) | |||
30 | } | 32 | } |
31 | 33 | ||
32 | void (*perf_irq)(unsigned long, struct pt_regs *) = dummy_perf; | 34 | void (*perf_irq)(unsigned long, struct pt_regs *) = dummy_perf; |
35 | EXPORT_SYMBOL(perf_irq); | ||
33 | 36 | ||
34 | /* | 37 | /* |
35 | * The main interrupt entry point. | 38 | * The main interrupt entry point. |
diff --git a/arch/alpha/kernel/pci-noop.c b/arch/alpha/kernel/pci-noop.c index fff5cf93e816..174b729c504b 100644 --- a/arch/alpha/kernel/pci-noop.c +++ b/arch/alpha/kernel/pci-noop.c | |||
@@ -201,6 +201,7 @@ dma_set_mask(struct device *dev, u64 mask) | |||
201 | 201 | ||
202 | return 0; | 202 | return 0; |
203 | } | 203 | } |
204 | EXPORT_SYMBOL(dma_set_mask); | ||
204 | 205 | ||
205 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) | 206 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) |
206 | { | 207 | { |
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c index c468e312e5f8..6e7d1fe6e935 100644 --- a/arch/alpha/kernel/pci_iommu.c +++ b/arch/alpha/kernel/pci_iommu.c | |||
@@ -300,6 +300,7 @@ pci_map_single(struct pci_dev *pdev, void *cpu_addr, size_t size, int dir) | |||
300 | dac_allowed = pdev ? pci_dac_dma_supported(pdev, pdev->dma_mask) : 0; | 300 | dac_allowed = pdev ? pci_dac_dma_supported(pdev, pdev->dma_mask) : 0; |
301 | return pci_map_single_1(pdev, cpu_addr, size, dac_allowed); | 301 | return pci_map_single_1(pdev, cpu_addr, size, dac_allowed); |
302 | } | 302 | } |
303 | EXPORT_SYMBOL(pci_map_single); | ||
303 | 304 | ||
304 | dma_addr_t | 305 | dma_addr_t |
305 | pci_map_page(struct pci_dev *pdev, struct page *page, unsigned long offset, | 306 | pci_map_page(struct pci_dev *pdev, struct page *page, unsigned long offset, |
@@ -314,6 +315,7 @@ pci_map_page(struct pci_dev *pdev, struct page *page, unsigned long offset, | |||
314 | return pci_map_single_1(pdev, (char *)page_address(page) + offset, | 315 | return pci_map_single_1(pdev, (char *)page_address(page) + offset, |
315 | size, dac_allowed); | 316 | size, dac_allowed); |
316 | } | 317 | } |
318 | EXPORT_SYMBOL(pci_map_page); | ||
317 | 319 | ||
318 | /* Unmap a single streaming mode DMA translation. The DMA_ADDR and | 320 | /* Unmap a single streaming mode DMA translation. The DMA_ADDR and |
319 | SIZE must match what was provided for in a previous pci_map_single | 321 | SIZE must match what was provided for in a previous pci_map_single |
@@ -379,6 +381,7 @@ pci_unmap_single(struct pci_dev *pdev, dma_addr_t dma_addr, size_t size, | |||
379 | DBGA2("pci_unmap_single: sg [%lx,%lx] np %ld from %p\n", | 381 | DBGA2("pci_unmap_single: sg [%lx,%lx] np %ld from %p\n", |
380 | dma_addr, size, npages, __builtin_return_address(0)); | 382 | dma_addr, size, npages, __builtin_return_address(0)); |
381 | } | 383 | } |
384 | EXPORT_SYMBOL(pci_unmap_single); | ||
382 | 385 | ||
383 | void | 386 | void |
384 | pci_unmap_page(struct pci_dev *pdev, dma_addr_t dma_addr, | 387 | pci_unmap_page(struct pci_dev *pdev, dma_addr_t dma_addr, |
@@ -386,6 +389,7 @@ pci_unmap_page(struct pci_dev *pdev, dma_addr_t dma_addr, | |||
386 | { | 389 | { |
387 | pci_unmap_single(pdev, dma_addr, size, direction); | 390 | pci_unmap_single(pdev, dma_addr, size, direction); |
388 | } | 391 | } |
392 | EXPORT_SYMBOL(pci_unmap_page); | ||
389 | 393 | ||
390 | /* Allocate and map kernel buffer using consistent mode DMA for PCI | 394 | /* Allocate and map kernel buffer using consistent mode DMA for PCI |
391 | device. Returns non-NULL cpu-view pointer to the buffer if | 395 | device. Returns non-NULL cpu-view pointer to the buffer if |
@@ -427,6 +431,7 @@ try_again: | |||
427 | 431 | ||
428 | return cpu_addr; | 432 | return cpu_addr; |
429 | } | 433 | } |
434 | EXPORT_SYMBOL(pci_alloc_consistent); | ||
430 | 435 | ||
431 | /* Free and unmap a consistent DMA buffer. CPU_ADDR and DMA_ADDR must | 436 | /* Free and unmap a consistent DMA buffer. CPU_ADDR and DMA_ADDR must |
432 | be values that were returned from pci_alloc_consistent. SIZE must | 437 | be values that were returned from pci_alloc_consistent. SIZE must |
@@ -444,7 +449,7 @@ pci_free_consistent(struct pci_dev *pdev, size_t size, void *cpu_addr, | |||
444 | DBGA2("pci_free_consistent: [%x,%lx] from %p\n", | 449 | DBGA2("pci_free_consistent: [%x,%lx] from %p\n", |
445 | dma_addr, size, __builtin_return_address(0)); | 450 | dma_addr, size, __builtin_return_address(0)); |
446 | } | 451 | } |
447 | 452 | EXPORT_SYMBOL(pci_free_consistent); | |
448 | 453 | ||
449 | /* Classify the elements of the scatterlist. Write dma_address | 454 | /* Classify the elements of the scatterlist. Write dma_address |
450 | of each element with: | 455 | of each element with: |
@@ -672,6 +677,7 @@ pci_map_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents, | |||
672 | pci_unmap_sg(pdev, start, out - start, direction); | 677 | pci_unmap_sg(pdev, start, out - start, direction); |
673 | return 0; | 678 | return 0; |
674 | } | 679 | } |
680 | EXPORT_SYMBOL(pci_map_sg); | ||
675 | 681 | ||
676 | /* Unmap a set of streaming mode DMA translations. Again, cpu read | 682 | /* Unmap a set of streaming mode DMA translations. Again, cpu read |
677 | rules concerning calls here are the same as for pci_unmap_single() | 683 | rules concerning calls here are the same as for pci_unmap_single() |
@@ -752,6 +758,7 @@ pci_unmap_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents, | |||
752 | 758 | ||
753 | DBGA("pci_unmap_sg: %ld entries\n", nents - (end - sg)); | 759 | DBGA("pci_unmap_sg: %ld entries\n", nents - (end - sg)); |
754 | } | 760 | } |
761 | EXPORT_SYMBOL(pci_unmap_sg); | ||
755 | 762 | ||
756 | 763 | ||
757 | /* Return whether the given PCI device DMA address mask can be | 764 | /* Return whether the given PCI device DMA address mask can be |
@@ -786,6 +793,7 @@ pci_dma_supported(struct pci_dev *pdev, u64 mask) | |||
786 | 793 | ||
787 | return 0; | 794 | return 0; |
788 | } | 795 | } |
796 | EXPORT_SYMBOL(pci_dma_supported); | ||
789 | 797 | ||
790 | 798 | ||
791 | /* | 799 | /* |
@@ -908,6 +916,7 @@ pci_dac_dma_supported(struct pci_dev *dev, u64 mask) | |||
908 | 916 | ||
909 | return ok; | 917 | return ok; |
910 | } | 918 | } |
919 | EXPORT_SYMBOL(pci_dac_dma_supported); | ||
911 | 920 | ||
912 | dma64_addr_t | 921 | dma64_addr_t |
913 | pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, | 922 | pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, |
@@ -917,6 +926,7 @@ pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, | |||
917 | + __pa(page_address(page)) | 926 | + __pa(page_address(page)) |
918 | + (dma64_addr_t) offset); | 927 | + (dma64_addr_t) offset); |
919 | } | 928 | } |
929 | EXPORT_SYMBOL(pci_dac_page_to_dma); | ||
920 | 930 | ||
921 | struct page * | 931 | struct page * |
922 | pci_dac_dma_to_page(struct pci_dev *pdev, dma64_addr_t dma_addr) | 932 | pci_dac_dma_to_page(struct pci_dev *pdev, dma64_addr_t dma_addr) |
@@ -924,13 +934,14 @@ pci_dac_dma_to_page(struct pci_dev *pdev, dma64_addr_t dma_addr) | |||
924 | unsigned long paddr = (dma_addr & PAGE_MASK) - alpha_mv.pci_dac_offset; | 934 | unsigned long paddr = (dma_addr & PAGE_MASK) - alpha_mv.pci_dac_offset; |
925 | return virt_to_page(__va(paddr)); | 935 | return virt_to_page(__va(paddr)); |
926 | } | 936 | } |
937 | EXPORT_SYMBOL(pci_dac_dma_to_page); | ||
927 | 938 | ||
928 | unsigned long | 939 | unsigned long |
929 | pci_dac_dma_to_offset(struct pci_dev *pdev, dma64_addr_t dma_addr) | 940 | pci_dac_dma_to_offset(struct pci_dev *pdev, dma64_addr_t dma_addr) |
930 | { | 941 | { |
931 | return (dma_addr & ~PAGE_MASK); | 942 | return (dma_addr & ~PAGE_MASK); |
932 | } | 943 | } |
933 | 944 | EXPORT_SYMBOL(pci_dac_dma_to_offset); | |
934 | 945 | ||
935 | /* Helper for generic DMA-mapping functions. */ | 946 | /* Helper for generic DMA-mapping functions. */ |
936 | 947 | ||
@@ -957,6 +968,7 @@ alpha_gendev_to_pci(struct device *dev) | |||
957 | /* This assumes ISA bus master with dma_mask 0xffffff. */ | 968 | /* This assumes ISA bus master with dma_mask 0xffffff. */ |
958 | return NULL; | 969 | return NULL; |
959 | } | 970 | } |
971 | EXPORT_SYMBOL(alpha_gendev_to_pci); | ||
960 | 972 | ||
961 | int | 973 | int |
962 | dma_set_mask(struct device *dev, u64 mask) | 974 | dma_set_mask(struct device *dev, u64 mask) |
@@ -969,3 +981,4 @@ dma_set_mask(struct device *dev, u64 mask) | |||
969 | 981 | ||
970 | return 0; | 982 | return 0; |
971 | } | 983 | } |
984 | EXPORT_SYMBOL(dma_set_mask); | ||
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index b3a8a2980365..3370e6faeae0 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -205,6 +205,7 @@ start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) | |||
205 | regs->ps = 8; | 205 | regs->ps = 8; |
206 | wrusp(sp); | 206 | wrusp(sp); |
207 | } | 207 | } |
208 | EXPORT_SYMBOL(start_thread); | ||
208 | 209 | ||
209 | /* | 210 | /* |
210 | * Free current thread data structures etc.. | 211 | * Free current thread data structures etc.. |
@@ -376,6 +377,7 @@ dump_thread(struct pt_regs * pt, struct user * dump) | |||
376 | dump->regs[EF_A2] = pt->r18; | 377 | dump->regs[EF_A2] = pt->r18; |
377 | memcpy((char *)dump->regs + EF_SIZE, sw->fp, 32 * 8); | 378 | memcpy((char *)dump->regs + EF_SIZE, sw->fp, 32 * 8); |
378 | } | 379 | } |
380 | EXPORT_SYMBOL(dump_thread); | ||
379 | 381 | ||
380 | /* | 382 | /* |
381 | * Fill in the user structure for a ELF core dump. | 383 | * Fill in the user structure for a ELF core dump. |
@@ -424,6 +426,7 @@ dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti) | |||
424 | useful value of the thread's UNIQUE field. */ | 426 | useful value of the thread's UNIQUE field. */ |
425 | dest[32] = ti->pcb.unique; | 427 | dest[32] = ti->pcb.unique; |
426 | } | 428 | } |
429 | EXPORT_SYMBOL(dump_elf_thread); | ||
427 | 430 | ||
428 | int | 431 | int |
429 | dump_elf_task(elf_greg_t *dest, struct task_struct *task) | 432 | dump_elf_task(elf_greg_t *dest, struct task_struct *task) |
@@ -431,6 +434,7 @@ dump_elf_task(elf_greg_t *dest, struct task_struct *task) | |||
431 | dump_elf_thread(dest, task_pt_regs(task), task_thread_info(task)); | 434 | dump_elf_thread(dest, task_pt_regs(task), task_thread_info(task)); |
432 | return 1; | 435 | return 1; |
433 | } | 436 | } |
437 | EXPORT_SYMBOL(dump_elf_task); | ||
434 | 438 | ||
435 | int | 439 | int |
436 | dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task) | 440 | dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task) |
@@ -439,6 +443,7 @@ dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task) | |||
439 | memcpy(dest, sw->fp, 32 * 8); | 443 | memcpy(dest, sw->fp, 32 * 8); |
440 | return 1; | 444 | return 1; |
441 | } | 445 | } |
446 | EXPORT_SYMBOL(dump_elf_task_fp); | ||
442 | 447 | ||
443 | /* | 448 | /* |
444 | * sys_execve() executes a new program. | 449 | * sys_execve() executes a new program. |
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c index a94e6d93e2ee..1aea7c7c683c 100644 --- a/arch/alpha/kernel/setup.c +++ b/arch/alpha/kernel/setup.c | |||
@@ -66,6 +66,7 @@ static struct notifier_block alpha_panic_block = { | |||
66 | 66 | ||
67 | 67 | ||
68 | struct hwrpb_struct *hwrpb; | 68 | struct hwrpb_struct *hwrpb; |
69 | EXPORT_SYMBOL(hwrpb); | ||
69 | unsigned long srm_hae; | 70 | unsigned long srm_hae; |
70 | 71 | ||
71 | int alpha_l1i_cacheshape; | 72 | int alpha_l1i_cacheshape; |
@@ -111,6 +112,7 @@ unsigned long alpha_agpgart_size = DEFAULT_AGP_APER_SIZE; | |||
111 | #ifdef CONFIG_ALPHA_GENERIC | 112 | #ifdef CONFIG_ALPHA_GENERIC |
112 | struct alpha_machine_vector alpha_mv; | 113 | struct alpha_machine_vector alpha_mv; |
113 | int alpha_using_srm; | 114 | int alpha_using_srm; |
115 | EXPORT_SYMBOL(alpha_using_srm); | ||
114 | #endif | 116 | #endif |
115 | 117 | ||
116 | static struct alpha_machine_vector *get_sysvec(unsigned long, unsigned long, | 118 | static struct alpha_machine_vector *get_sysvec(unsigned long, unsigned long, |
@@ -137,6 +139,8 @@ struct screen_info screen_info = { | |||
137 | .orig_video_points = 16 | 139 | .orig_video_points = 16 |
138 | }; | 140 | }; |
139 | 141 | ||
142 | EXPORT_SYMBOL(screen_info); | ||
143 | |||
140 | /* | 144 | /* |
141 | * The direct map I/O window, if any. This should be the same | 145 | * The direct map I/O window, if any. This should be the same |
142 | * for all busses, since it's used by virt_to_bus. | 146 | * for all busses, since it's used by virt_to_bus. |
@@ -144,6 +148,8 @@ struct screen_info screen_info = { | |||
144 | 148 | ||
145 | unsigned long __direct_map_base; | 149 | unsigned long __direct_map_base; |
146 | unsigned long __direct_map_size; | 150 | unsigned long __direct_map_size; |
151 | EXPORT_SYMBOL(__direct_map_base); | ||
152 | EXPORT_SYMBOL(__direct_map_size); | ||
147 | 153 | ||
148 | /* | 154 | /* |
149 | * Declare all of the machine vectors. | 155 | * Declare all of the machine vectors. |
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index 596780e2c7da..d1ec4f51df1a 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c | |||
@@ -52,6 +52,7 @@ | |||
52 | 52 | ||
53 | /* A collection of per-processor data. */ | 53 | /* A collection of per-processor data. */ |
54 | struct cpuinfo_alpha cpu_data[NR_CPUS]; | 54 | struct cpuinfo_alpha cpu_data[NR_CPUS]; |
55 | EXPORT_SYMBOL(cpu_data); | ||
55 | 56 | ||
56 | /* A collection of single bit ipi messages. */ | 57 | /* A collection of single bit ipi messages. */ |
57 | static struct { | 58 | static struct { |
@@ -74,6 +75,7 @@ EXPORT_SYMBOL(cpu_online_map); | |||
74 | 75 | ||
75 | int smp_num_probed; /* Internal processor count */ | 76 | int smp_num_probed; /* Internal processor count */ |
76 | int smp_num_cpus = 1; /* Number that came online. */ | 77 | int smp_num_cpus = 1; /* Number that came online. */ |
78 | EXPORT_SYMBOL(smp_num_cpus); | ||
77 | 79 | ||
78 | extern void calibrate_delay(void); | 80 | extern void calibrate_delay(void); |
79 | 81 | ||
@@ -790,6 +792,7 @@ smp_call_function_on_cpu (void (*func) (void *info), void *info, int retry, | |||
790 | 792 | ||
791 | return 0; | 793 | return 0; |
792 | } | 794 | } |
795 | EXPORT_SYMBOL(smp_call_function_on_cpu); | ||
793 | 796 | ||
794 | int | 797 | int |
795 | smp_call_function (void (*func) (void *info), void *info, int retry, int wait) | 798 | smp_call_function (void (*func) (void *info), void *info, int retry, int wait) |
@@ -797,6 +800,7 @@ smp_call_function (void (*func) (void *info), void *info, int retry, int wait) | |||
797 | return smp_call_function_on_cpu (func, info, retry, wait, | 800 | return smp_call_function_on_cpu (func, info, retry, wait, |
798 | cpu_online_map); | 801 | cpu_online_map); |
799 | } | 802 | } |
803 | EXPORT_SYMBOL(smp_call_function); | ||
800 | 804 | ||
801 | static void | 805 | static void |
802 | ipi_imb(void *ignored) | 806 | ipi_imb(void *ignored) |
@@ -811,6 +815,7 @@ smp_imb(void) | |||
811 | if (on_each_cpu(ipi_imb, NULL, 1, 1)) | 815 | if (on_each_cpu(ipi_imb, NULL, 1, 1)) |
812 | printk(KERN_CRIT "smp_imb: timed out\n"); | 816 | printk(KERN_CRIT "smp_imb: timed out\n"); |
813 | } | 817 | } |
818 | EXPORT_SYMBOL(smp_imb); | ||
814 | 819 | ||
815 | static void | 820 | static void |
816 | ipi_flush_tlb_all(void *ignored) | 821 | ipi_flush_tlb_all(void *ignored) |
@@ -866,6 +871,7 @@ flush_tlb_mm(struct mm_struct *mm) | |||
866 | 871 | ||
867 | preempt_enable(); | 872 | preempt_enable(); |
868 | } | 873 | } |
874 | EXPORT_SYMBOL(flush_tlb_mm); | ||
869 | 875 | ||
870 | struct flush_tlb_page_struct { | 876 | struct flush_tlb_page_struct { |
871 | struct vm_area_struct *vma; | 877 | struct vm_area_struct *vma; |
@@ -918,6 +924,7 @@ flush_tlb_page(struct vm_area_struct *vma, unsigned long addr) | |||
918 | 924 | ||
919 | preempt_enable(); | 925 | preempt_enable(); |
920 | } | 926 | } |
927 | EXPORT_SYMBOL(flush_tlb_page); | ||
921 | 928 | ||
922 | void | 929 | void |
923 | flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) | 930 | flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) |
@@ -925,6 +932,7 @@ flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long e | |||
925 | /* On the Alpha we always flush the whole user tlb. */ | 932 | /* On the Alpha we always flush the whole user tlb. */ |
926 | flush_tlb_mm(vma->vm_mm); | 933 | flush_tlb_mm(vma->vm_mm); |
927 | } | 934 | } |
935 | EXPORT_SYMBOL(flush_tlb_range); | ||
928 | 936 | ||
929 | static void | 937 | static void |
930 | ipi_flush_icache_page(void *x) | 938 | ipi_flush_icache_page(void *x) |
diff --git a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c index cf0666523989..d7053eb4ffcf 100644 --- a/arch/alpha/kernel/time.c +++ b/arch/alpha/kernel/time.c | |||
@@ -57,6 +57,7 @@ | |||
57 | static int set_rtc_mmss(unsigned long); | 57 | static int set_rtc_mmss(unsigned long); |
58 | 58 | ||
59 | DEFINE_SPINLOCK(rtc_lock); | 59 | DEFINE_SPINLOCK(rtc_lock); |
60 | EXPORT_SYMBOL(rtc_lock); | ||
60 | 61 | ||
61 | #define TICK_SIZE (tick_nsec / 1000) | 62 | #define TICK_SIZE (tick_nsec / 1000) |
62 | 63 | ||