Skip to content

Commit 62aa242

Browse files
pavelvkozlovabrodkin
authored andcommitted
ARCv3: export __clear_user symbol to dynamically loaded modules
Fix build error for modules used the clear_user macro. Symbol __clear_user comes to modules from the clear_user macro. Don't export symbols for raw_copy_from_user and raw_copy_to_user, as they are not a part of public API for modules and for ARC defined __get_user_fn,__put_user_fn macros without use of raw_copy_from_user and raw_copy_to_user. Signed-off-by: Pavel Kozlov <pavel.kozlov@synopsys.com>
1 parent f010c17 commit 62aa242

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arc/lib/uaccess.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* ASSUMES unaligned access
55
*/
66

7+
#include <asm-generic/export.h>
78
#include <linux/linkage.h>
89
#include <asm/assembler.h>
910

@@ -124,6 +125,7 @@ ENTRY_CFI(__clear_user)
124125
sub r0, r8, r0
125126

126127
END_CFI(__clear_user)
128+
EXPORT_SYMBOL(__clear_user)
127129

128130
; Note that .fixup section is missing and that is not an omission
129131
;

0 commit comments

Comments
 (0)