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