diff options
| author | Jesper Nilsson <jespern@axis.com> | 2014-10-07 06:20:47 -0400 |
|---|---|---|
| committer | Jesper Nilsson <jespern@axis.com> | 2014-12-19 18:03:22 -0500 |
| commit | dbd3c7e1bfb1e4319402eda23e04cc08dd26c50e (patch) | |
| tree | 5d805b65faeabbe24812adc88206be0ad7925180 /arch/cris/kernel | |
| parent | 82e6df1e86e5c09d610df3da7524ea951b2ad458 (diff) | |
CRIS: Export missing function symbols
strcmp was lost when all other string functions were removed,
but we still have an optimized version for this on CRISv32,
so any driver built as a module would not have access to this symbol.
In a similar manner, we had optimized versions of
csum_partial_copy_from_user and __do_clear_user
but no exported symbols for them, breaking bunch of other drivers
when built as a module.
At the same time, move EXPORT_SYMBOL(__copy_user) and
EXPORT_SYMBOL(__copy_user_zeroing) C-files so it's
located together with the function definition.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/kernel')
| -rw-r--r-- | arch/cris/kernel/crisksyms.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/cris/kernel/crisksyms.c b/arch/cris/kernel/crisksyms.c index 5868cee20ebd..3908b942fd4c 100644 --- a/arch/cris/kernel/crisksyms.c +++ b/arch/cris/kernel/crisksyms.c | |||
| @@ -47,16 +47,16 @@ EXPORT_SYMBOL(__negdi2); | |||
| 47 | EXPORT_SYMBOL(__ioremap); | 47 | EXPORT_SYMBOL(__ioremap); |
| 48 | EXPORT_SYMBOL(iounmap); | 48 | EXPORT_SYMBOL(iounmap); |
| 49 | 49 | ||
| 50 | /* Userspace access functions */ | ||
| 51 | EXPORT_SYMBOL(__copy_user_zeroing); | ||
| 52 | EXPORT_SYMBOL(__copy_user); | ||
| 53 | |||
| 54 | #undef memcpy | 50 | #undef memcpy |
| 55 | #undef memset | 51 | #undef memset |
| 56 | extern void * memset(void *, int, __kernel_size_t); | 52 | extern void * memset(void *, int, __kernel_size_t); |
| 57 | extern void * memcpy(void *, const void *, __kernel_size_t); | 53 | extern void * memcpy(void *, const void *, __kernel_size_t); |
| 58 | EXPORT_SYMBOL(memcpy); | 54 | EXPORT_SYMBOL(memcpy); |
| 59 | EXPORT_SYMBOL(memset); | 55 | EXPORT_SYMBOL(memset); |
| 56 | #ifdef CONFIG_ETRAX_ARCH_V32 | ||
| 57 | #undef strcmp | ||
| 58 | EXPORT_SYMBOL(strcmp); | ||
| 59 | #endif | ||
| 60 | 60 | ||
| 61 | #ifdef CONFIG_ETRAX_FAST_TIMER | 61 | #ifdef CONFIG_ETRAX_FAST_TIMER |
| 62 | /* Fast timer functions */ | 62 | /* Fast timer functions */ |
| @@ -66,3 +66,4 @@ EXPORT_SYMBOL(del_fast_timer); | |||
| 66 | EXPORT_SYMBOL(schedule_usleep); | 66 | EXPORT_SYMBOL(schedule_usleep); |
| 67 | #endif | 67 | #endif |
| 68 | EXPORT_SYMBOL(csum_partial); | 68 | EXPORT_SYMBOL(csum_partial); |
| 69 | EXPORT_SYMBOL(csum_partial_copy_from_user); | ||
