diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-06-23 03:08:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:11 -0400 |
commit | 129f69465b411592247c408f93d7106939223be1 (patch) | |
tree | f585dff5c44ffdd0ee4ce05dec56dbc8477eb909 /arch/i386/lib | |
parent | a9ed8817966dd723754a990f1003264a21b5747e (diff) |
[PATCH] Remove i386_ksyms.c, almost.
* EXPORT_SYMBOL's moved to other files
* #include <linux/config.h>, <linux/module.h> where needed
* #include's in i386_ksyms.c cleaned up
* After copy-paste, redundant due to Makefiles rules preprocessor directives
removed:
#ifdef CONFIG_FOO
EXPORT_SYMBOL(foo);
#endif
obj-$(CONFIG_FOO) += foo.o
* Tiny reformat to fit in 80 columns
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/lib')
-rw-r--r-- | arch/i386/lib/dec_and_lock.c | 2 | ||||
-rw-r--r-- | arch/i386/lib/delay.c | 6 | ||||
-rw-r--r-- | arch/i386/lib/mmx.c | 5 | ||||
-rw-r--r-- | arch/i386/lib/usercopy.c | 8 |
4 files changed, 20 insertions, 1 deletions
diff --git a/arch/i386/lib/dec_and_lock.c b/arch/i386/lib/dec_and_lock.c index ab43394dc775..8b81b2524fa6 100644 --- a/arch/i386/lib/dec_and_lock.c +++ b/arch/i386/lib/dec_and_lock.c | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/spinlock.h> | 10 | #include <linux/spinlock.h> |
11 | #include <linux/module.h> | ||
11 | #include <asm/atomic.h> | 12 | #include <asm/atomic.h> |
12 | 13 | ||
13 | int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock) | 14 | int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock) |
@@ -38,3 +39,4 @@ slow_path: | |||
38 | spin_unlock(lock); | 39 | spin_unlock(lock); |
39 | return 0; | 40 | return 0; |
40 | } | 41 | } |
42 | EXPORT_SYMBOL(_atomic_dec_and_lock); | ||
diff --git a/arch/i386/lib/delay.c b/arch/i386/lib/delay.c index eb0cdfe9280f..c49a6acbee56 100644 --- a/arch/i386/lib/delay.c +++ b/arch/i386/lib/delay.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/config.h> | 13 | #include <linux/config.h> |
14 | #include <linux/sched.h> | 14 | #include <linux/sched.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/module.h> | ||
16 | #include <asm/processor.h> | 17 | #include <asm/processor.h> |
17 | #include <asm/delay.h> | 18 | #include <asm/delay.h> |
18 | #include <asm/timer.h> | 19 | #include <asm/timer.h> |
@@ -47,3 +48,8 @@ void __ndelay(unsigned long nsecs) | |||
47 | { | 48 | { |
48 | __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ | 49 | __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ |
49 | } | 50 | } |
51 | |||
52 | EXPORT_SYMBOL(__delay); | ||
53 | EXPORT_SYMBOL(__const_udelay); | ||
54 | EXPORT_SYMBOL(__udelay); | ||
55 | EXPORT_SYMBOL(__ndelay); | ||
diff --git a/arch/i386/lib/mmx.c b/arch/i386/lib/mmx.c index 01f8b1a2cc84..2afda94dffd3 100644 --- a/arch/i386/lib/mmx.c +++ b/arch/i386/lib/mmx.c | |||
@@ -3,6 +3,7 @@ | |||
3 | #include <linux/string.h> | 3 | #include <linux/string.h> |
4 | #include <linux/sched.h> | 4 | #include <linux/sched.h> |
5 | #include <linux/hardirq.h> | 5 | #include <linux/hardirq.h> |
6 | #include <linux/module.h> | ||
6 | 7 | ||
7 | #include <asm/i387.h> | 8 | #include <asm/i387.h> |
8 | 9 | ||
@@ -397,3 +398,7 @@ void mmx_copy_page(void *to, void *from) | |||
397 | else | 398 | else |
398 | fast_copy_page(to, from); | 399 | fast_copy_page(to, from); |
399 | } | 400 | } |
401 | |||
402 | EXPORT_SYMBOL(_mmx_memcpy); | ||
403 | EXPORT_SYMBOL(mmx_clear_page); | ||
404 | EXPORT_SYMBOL(mmx_copy_page); | ||
diff --git a/arch/i386/lib/usercopy.c b/arch/i386/lib/usercopy.c index 51aa2bbb0269..4cf981d70f45 100644 --- a/arch/i386/lib/usercopy.c +++ b/arch/i386/lib/usercopy.c | |||
@@ -84,6 +84,7 @@ __strncpy_from_user(char *dst, const char __user *src, long count) | |||
84 | __do_strncpy_from_user(dst, src, count, res); | 84 | __do_strncpy_from_user(dst, src, count, res); |
85 | return res; | 85 | return res; |
86 | } | 86 | } |
87 | EXPORT_SYMBOL(__strncpy_from_user); | ||
87 | 88 | ||
88 | /** | 89 | /** |
89 | * strncpy_from_user: - Copy a NUL terminated string from userspace. | 90 | * strncpy_from_user: - Copy a NUL terminated string from userspace. |
@@ -111,7 +112,7 @@ strncpy_from_user(char *dst, const char __user *src, long count) | |||
111 | __do_strncpy_from_user(dst, src, count, res); | 112 | __do_strncpy_from_user(dst, src, count, res); |
112 | return res; | 113 | return res; |
113 | } | 114 | } |
114 | 115 | EXPORT_SYMBOL(strncpy_from_user); | |
115 | 116 | ||
116 | /* | 117 | /* |
117 | * Zero Userspace | 118 | * Zero Userspace |
@@ -157,6 +158,7 @@ clear_user(void __user *to, unsigned long n) | |||
157 | __do_clear_user(to, n); | 158 | __do_clear_user(to, n); |
158 | return n; | 159 | return n; |
159 | } | 160 | } |
161 | EXPORT_SYMBOL(clear_user); | ||
160 | 162 | ||
161 | /** | 163 | /** |
162 | * __clear_user: - Zero a block of memory in user space, with less checking. | 164 | * __clear_user: - Zero a block of memory in user space, with less checking. |
@@ -175,6 +177,7 @@ __clear_user(void __user *to, unsigned long n) | |||
175 | __do_clear_user(to, n); | 177 | __do_clear_user(to, n); |
176 | return n; | 178 | return n; |
177 | } | 179 | } |
180 | EXPORT_SYMBOL(__clear_user); | ||
178 | 181 | ||
179 | /** | 182 | /** |
180 | * strlen_user: - Get the size of a string in user space. | 183 | * strlen_user: - Get the size of a string in user space. |
@@ -218,6 +221,7 @@ long strnlen_user(const char __user *s, long n) | |||
218 | :"cc"); | 221 | :"cc"); |
219 | return res & mask; | 222 | return res & mask; |
220 | } | 223 | } |
224 | EXPORT_SYMBOL(strnlen_user); | ||
221 | 225 | ||
222 | #ifdef CONFIG_X86_INTEL_USERCOPY | 226 | #ifdef CONFIG_X86_INTEL_USERCOPY |
223 | static unsigned long | 227 | static unsigned long |
@@ -570,6 +574,7 @@ survive: | |||
570 | n = __copy_user_intel(to, from, n); | 574 | n = __copy_user_intel(to, from, n); |
571 | return n; | 575 | return n; |
572 | } | 576 | } |
577 | EXPORT_SYMBOL(__copy_to_user_ll); | ||
573 | 578 | ||
574 | unsigned long | 579 | unsigned long |
575 | __copy_from_user_ll(void *to, const void __user *from, unsigned long n) | 580 | __copy_from_user_ll(void *to, const void __user *from, unsigned long n) |
@@ -581,6 +586,7 @@ __copy_from_user_ll(void *to, const void __user *from, unsigned long n) | |||
581 | n = __copy_user_zeroing_intel(to, from, n); | 586 | n = __copy_user_zeroing_intel(to, from, n); |
582 | return n; | 587 | return n; |
583 | } | 588 | } |
589 | EXPORT_SYMBOL(__copy_from_user_ll); | ||
584 | 590 | ||
585 | /** | 591 | /** |
586 | * copy_to_user: - Copy a block of data into user space. | 592 | * copy_to_user: - Copy a block of data into user space. |