Commit | Line | Data |
---|---|---|
2ee60e17 AK |
1 | /* Exports for assembly files. |
2 | All C exports should go in the respective C files. */ | |
3 | ||
186f4360 | 4 | #include <linux/export.h> |
a203800d | 5 | #include <linux/spinlock_types.h> |
1da177e4 | 6 | #include <linux/smp.h> |
1da177e4 | 7 | |
37135677 IM |
8 | #include <net/checksum.h> |
9 | ||
1da177e4 | 10 | #include <asm/processor.h> |
1da177e4 | 11 | #include <asm/pgtable.h> |
37135677 | 12 | #include <asm/uaccess.h> |
70fd93c9 | 13 | #include <asm/desc.h> |
395a59d0 | 14 | #include <asm/ftrace.h> |
1da177e4 | 15 | |
606576ce | 16 | #ifdef CONFIG_FUNCTION_TRACER |
d57c5d51 SR |
17 | /* mcount and __fentry__ are defined in assembly */ |
18 | #ifdef CC_USING_FENTRY | |
19 | EXPORT_SYMBOL(__fentry__); | |
20 | #else | |
37135677 IM |
21 | EXPORT_SYMBOL(mcount); |
22 | #endif | |
d57c5d51 | 23 | #endif |
1da177e4 | 24 | |
1da177e4 LT |
25 | EXPORT_SYMBOL(__get_user_1); |
26 | EXPORT_SYMBOL(__get_user_2); | |
27 | EXPORT_SYMBOL(__get_user_4); | |
28 | EXPORT_SYMBOL(__get_user_8); | |
29 | EXPORT_SYMBOL(__put_user_1); | |
30 | EXPORT_SYMBOL(__put_user_2); | |
31 | EXPORT_SYMBOL(__put_user_4); | |
32 | EXPORT_SYMBOL(__put_user_8); | |
33 | ||
1b1d9258 JB |
34 | EXPORT_SYMBOL(copy_user_generic_string); |
35 | EXPORT_SYMBOL(copy_user_generic_unrolled); | |
954e482b | 36 | EXPORT_SYMBOL(copy_user_enhanced_fast_string); |
0812a579 | 37 | EXPORT_SYMBOL(__copy_user_nocache); |
9f0cf4ad | 38 | EXPORT_SYMBOL(_copy_from_user); |
3c93ca00 | 39 | EXPORT_SYMBOL(_copy_to_user); |
1da177e4 | 40 | |
92b0729c TL |
41 | EXPORT_SYMBOL_GPL(memcpy_mcsafe); |
42 | ||
1da177e4 LT |
43 | EXPORT_SYMBOL(copy_page); |
44 | EXPORT_SYMBOL(clear_page); | |
45 | ||
89804c02 IM |
46 | EXPORT_SYMBOL(csum_partial); |
47 | ||
8000a83f PC |
48 | /* |
49 | * Export string functions. We normally rely on gcc builtin for most of these, | |
50 | * but gcc sometimes decides not to inline them. | |
51 | */ | |
1da177e4 LT |
52 | #undef memcpy |
53 | #undef memset | |
54 | #undef memmove | |
1da177e4 | 55 | |
393f203f AR |
56 | extern void *__memset(void *, int, __kernel_size_t); |
57 | extern void *__memcpy(void *, const void *, __kernel_size_t); | |
58 | extern void *__memmove(void *, const void *, __kernel_size_t); | |
8000a83f PC |
59 | extern void *memset(void *, int, __kernel_size_t); |
60 | extern void *memcpy(void *, const void *, __kernel_size_t); | |
393f203f AR |
61 | extern void *memmove(void *, const void *, __kernel_size_t); |
62 | ||
63 | EXPORT_SYMBOL(__memset); | |
64 | EXPORT_SYMBOL(__memcpy); | |
65 | EXPORT_SYMBOL(__memmove); | |
1da177e4 LT |
66 | |
67 | EXPORT_SYMBOL(memset); | |
1da177e4 | 68 | EXPORT_SYMBOL(memcpy); |
9599ec04 | 69 | EXPORT_SYMBOL(memmove); |
1da177e4 | 70 | |
0bdf525f AD |
71 | #ifndef CONFIG_DEBUG_VIRTUAL |
72 | EXPORT_SYMBOL(phys_base); | |
73 | #endif | |
1da177e4 | 74 | EXPORT_SYMBOL(empty_zero_page); |
e6428047 RR |
75 | #ifndef CONFIG_PARAVIRT |
76 | EXPORT_SYMBOL(native_load_gs_index); | |
77 | #endif | |
1a338ac3 PZ |
78 | |
79 | #ifdef CONFIG_PREEMPT | |
80 | EXPORT_SYMBOL(___preempt_schedule); | |
4eaca0a8 | 81 | EXPORT_SYMBOL(___preempt_schedule_notrace); |
1a338ac3 | 82 | #endif |