diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-03-26 10:24:04 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:11 -0400 |
commit | 1485c5c88483d200c9c4c71ed7e8eef1a1e317a1 (patch) | |
tree | ad42514ca55815ee6e2468ebc45ee0ef91e6d1db /arch | |
parent | e3dd9c2da674993edb5b52acb56a5d954415639b (diff) |
[S390] move EXPORT_SYMBOLs to definitions
Move all EXPORT_SYMBOLs to their corresponding definitions.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/bitmap.c | 5 | ||||
-rw-r--r-- | arch/s390/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/s390_ksyms.c | 44 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 8 | ||||
-rw-r--r-- | arch/s390/lib/delay.c | 2 | ||||
-rw-r--r-- | arch/s390/mm/init.c | 2 |
6 files changed, 19 insertions, 44 deletions
diff --git a/arch/s390/kernel/bitmap.c b/arch/s390/kernel/bitmap.c index 54e362b4267d..3ae4757b006a 100644 --- a/arch/s390/kernel/bitmap.c +++ b/arch/s390/kernel/bitmap.c | |||
@@ -7,10 +7,13 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/bitops.h> | 9 | #include <linux/bitops.h> |
10 | #include <linux/module.h> | ||
10 | 11 | ||
11 | const char _oi_bitmap[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; | 12 | const char _oi_bitmap[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; |
13 | EXPORT_SYMBOL(_oi_bitmap); | ||
12 | 14 | ||
13 | const char _ni_bitmap[] = { 0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f }; | 15 | const char _ni_bitmap[] = { 0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f }; |
16 | EXPORT_SYMBOL(_ni_bitmap); | ||
14 | 17 | ||
15 | const char _zb_findmap[] = { | 18 | const char _zb_findmap[] = { |
16 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | 19 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, |
@@ -29,6 +32,7 @@ const char _zb_findmap[] = { | |||
29 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, | 32 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5, |
30 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, | 33 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4, |
31 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,8 }; | 34 | 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,8 }; |
35 | EXPORT_SYMBOL(_zb_findmap); | ||
32 | 36 | ||
33 | const char _sb_findmap[] = { | 37 | const char _sb_findmap[] = { |
34 | 8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0, | 38 | 8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0, |
@@ -47,3 +51,4 @@ const char _sb_findmap[] = { | |||
47 | 4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0, | 51 | 4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0, |
48 | 5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0, | 52 | 5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0, |
49 | 4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0 }; | 53 | 4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0 }; |
54 | EXPORT_SYMBOL(_sb_findmap); | ||
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c index bd616fb31e75..b48e961a38f6 100644 --- a/arch/s390/kernel/process.c +++ b/arch/s390/kernel/process.c | |||
@@ -141,6 +141,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
141 | return do_fork(flags | CLONE_VM | CLONE_UNTRACED, | 141 | return do_fork(flags | CLONE_VM | CLONE_UNTRACED, |
142 | 0, ®s, 0, NULL, NULL); | 142 | 0, ®s, 0, NULL, NULL); |
143 | } | 143 | } |
144 | EXPORT_SYMBOL(kernel_thread); | ||
144 | 145 | ||
145 | /* | 146 | /* |
146 | * Free current thread data structures etc.. | 147 | * Free current thread data structures etc.. |
@@ -318,6 +319,7 @@ int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) | |||
318 | #endif /* CONFIG_64BIT */ | 319 | #endif /* CONFIG_64BIT */ |
319 | return 1; | 320 | return 1; |
320 | } | 321 | } |
322 | EXPORT_SYMBOL(dump_fpu); | ||
321 | 323 | ||
322 | unsigned long get_wchan(struct task_struct *p) | 324 | unsigned long get_wchan(struct task_struct *p) |
323 | { | 325 | { |
diff --git a/arch/s390/kernel/s390_ksyms.c b/arch/s390/kernel/s390_ksyms.c index 46b90cb03707..656fcbb9bd83 100644 --- a/arch/s390/kernel/s390_ksyms.c +++ b/arch/s390/kernel/s390_ksyms.c | |||
@@ -1,49 +1,5 @@ | |||
1 | /* | ||
2 | * arch/s390/kernel/s390_ksyms.c | ||
3 | * | ||
4 | * S390 version | ||
5 | */ | ||
6 | #include <linux/highuid.h> | ||
7 | #include <linux/module.h> | 1 | #include <linux/module.h> |
8 | #include <linux/mm.h> | ||
9 | #include <linux/smp.h> | ||
10 | #include <linux/syscalls.h> | ||
11 | #include <linux/interrupt.h> | ||
12 | #include <asm/checksum.h> | ||
13 | #include <asm/cpcmd.h> | ||
14 | #include <asm/delay.h> | ||
15 | #include <asm/pgalloc.h> | ||
16 | #include <asm/setup.h> | ||
17 | #include <asm/ftrace.h> | 2 | #include <asm/ftrace.h> |
18 | #ifdef CONFIG_IP_MULTICAST | ||
19 | #include <net/arp.h> | ||
20 | #endif | ||
21 | |||
22 | /* | ||
23 | * memory management | ||
24 | */ | ||
25 | EXPORT_SYMBOL(_oi_bitmap); | ||
26 | EXPORT_SYMBOL(_ni_bitmap); | ||
27 | EXPORT_SYMBOL(_zb_findmap); | ||
28 | EXPORT_SYMBOL(_sb_findmap); | ||
29 | |||
30 | /* | ||
31 | * binfmt_elf loader | ||
32 | */ | ||
33 | extern int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs); | ||
34 | EXPORT_SYMBOL(dump_fpu); | ||
35 | EXPORT_SYMBOL(empty_zero_page); | ||
36 | |||
37 | /* | ||
38 | * misc. | ||
39 | */ | ||
40 | EXPORT_SYMBOL(machine_flags); | ||
41 | EXPORT_SYMBOL(__udelay); | ||
42 | EXPORT_SYMBOL(kernel_thread); | ||
43 | EXPORT_SYMBOL(csum_fold); | ||
44 | EXPORT_SYMBOL(console_mode); | ||
45 | EXPORT_SYMBOL(console_devno); | ||
46 | EXPORT_SYMBOL(console_irq); | ||
47 | 3 | ||
48 | #ifdef CONFIG_FUNCTION_TRACER | 4 | #ifdef CONFIG_FUNCTION_TRACER |
49 | EXPORT_SYMBOL(_mcount); | 5 | EXPORT_SYMBOL(_mcount); |
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 8fdf08379ce9..0b8ad7b4f8f3 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -74,9 +74,17 @@ EXPORT_SYMBOL(uaccess); | |||
74 | * Machine setup.. | 74 | * Machine setup.. |
75 | */ | 75 | */ |
76 | unsigned int console_mode = 0; | 76 | unsigned int console_mode = 0; |
77 | EXPORT_SYMBOL(console_mode); | ||
78 | |||
77 | unsigned int console_devno = -1; | 79 | unsigned int console_devno = -1; |
80 | EXPORT_SYMBOL(console_devno); | ||
81 | |||
78 | unsigned int console_irq = -1; | 82 | unsigned int console_irq = -1; |
83 | EXPORT_SYMBOL(console_irq); | ||
84 | |||
79 | unsigned long machine_flags; | 85 | unsigned long machine_flags; |
86 | EXPORT_SYMBOL(machine_flags); | ||
87 | |||
80 | unsigned long elf_hwcap = 0; | 88 | unsigned long elf_hwcap = 0; |
81 | char elf_platform[ELF_PLATFORM_SIZE]; | 89 | char elf_platform[ELF_PLATFORM_SIZE]; |
82 | 90 | ||
diff --git a/arch/s390/lib/delay.c b/arch/s390/lib/delay.c index 6ccb9fab055a..3f5f680726ed 100644 --- a/arch/s390/lib/delay.c +++ b/arch/s390/lib/delay.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/delay.h> | 10 | #include <linux/delay.h> |
11 | #include <linux/timex.h> | 11 | #include <linux/timex.h> |
12 | #include <linux/module.h> | ||
12 | #include <linux/irqflags.h> | 13 | #include <linux/irqflags.h> |
13 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
14 | 15 | ||
@@ -92,6 +93,7 @@ out: | |||
92 | local_irq_restore(flags); | 93 | local_irq_restore(flags); |
93 | preempt_enable(); | 94 | preempt_enable(); |
94 | } | 95 | } |
96 | EXPORT_SYMBOL(__udelay); | ||
95 | 97 | ||
96 | /* | 98 | /* |
97 | * Simple udelay variant. To be used on startup and reboot | 99 | * Simple udelay variant. To be used on startup and reboot |
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index f0258ca3b17e..c634dfbe92e9 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -40,7 +40,9 @@ | |||
40 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 40 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
41 | 41 | ||
42 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((__aligned__(PAGE_SIZE))); | 42 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((__aligned__(PAGE_SIZE))); |
43 | |||
43 | char empty_zero_page[PAGE_SIZE] __attribute__((__aligned__(PAGE_SIZE))); | 44 | char empty_zero_page[PAGE_SIZE] __attribute__((__aligned__(PAGE_SIZE))); |
45 | EXPORT_SYMBOL(empty_zero_page); | ||
44 | 46 | ||
45 | /* | 47 | /* |
46 | * paging_init() sets up the page tables | 48 | * paging_init() sets up the page tables |