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>
This commit is contained in:
@@ -47,16 +47,16 @@ EXPORT_SYMBOL(__negdi2);
|
||||
EXPORT_SYMBOL(__ioremap);
|
||||
EXPORT_SYMBOL(iounmap);
|
||||
|
||||
/* Userspace access functions */
|
||||
EXPORT_SYMBOL(__copy_user_zeroing);
|
||||
EXPORT_SYMBOL(__copy_user);
|
||||
|
||||
#undef memcpy
|
||||
#undef memset
|
||||
extern void * memset(void *, int, __kernel_size_t);
|
||||
extern void * memcpy(void *, const void *, __kernel_size_t);
|
||||
EXPORT_SYMBOL(memcpy);
|
||||
EXPORT_SYMBOL(memset);
|
||||
#ifdef CONFIG_ETRAX_ARCH_V32
|
||||
#undef strcmp
|
||||
EXPORT_SYMBOL(strcmp);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ETRAX_FAST_TIMER
|
||||
/* Fast timer functions */
|
||||
@@ -66,3 +66,4 @@ EXPORT_SYMBOL(del_fast_timer);
|
||||
EXPORT_SYMBOL(schedule_usleep);
|
||||
#endif
|
||||
EXPORT_SYMBOL(csum_partial);
|
||||
EXPORT_SYMBOL(csum_partial_copy_from_user);
|
||||
|
Reference in New Issue
Block a user