Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Move lib symbol exports into arch/powerpc/lib/ppc_ksyms.c

Move the lib symbol exports closer to their function definitions

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Anton Blanchard and committed by
Michael Ellerman
7b20a955 5889bafa

+40 -33
-32
arch/powerpc/kernel/ppc_ksyms.c
··· 55 55 EXPORT_SYMBOL(_mcount); 56 56 #endif 57 57 58 - EXPORT_SYMBOL(strcpy); 59 - EXPORT_SYMBOL(strncpy); 60 - EXPORT_SYMBOL(strcat); 61 - EXPORT_SYMBOL(strlen); 62 - EXPORT_SYMBOL(strcmp); 63 - EXPORT_SYMBOL(strncmp); 64 - 65 - #ifndef CONFIG_GENERIC_CSUM 66 - EXPORT_SYMBOL(csum_partial); 67 - EXPORT_SYMBOL(csum_partial_copy_generic); 68 - EXPORT_SYMBOL(ip_fast_csum); 69 - EXPORT_SYMBOL(csum_tcpudp_magic); 70 - #endif 71 - 72 - EXPORT_SYMBOL(__copy_tofrom_user); 73 - EXPORT_SYMBOL(__clear_user); 74 - EXPORT_SYMBOL(copy_page); 75 - 76 58 #if defined(CONFIG_PCI) && defined(CONFIG_PPC32) 77 59 EXPORT_SYMBOL(isa_io_base); 78 60 EXPORT_SYMBOL(isa_mem_base); ··· 104 122 #endif 105 123 long long __bswapdi2(long long); 106 124 EXPORT_SYMBOL(__bswapdi2); 107 - EXPORT_SYMBOL(memcpy); 108 - EXPORT_SYMBOL(memset); 109 - EXPORT_SYMBOL(memmove); 110 - EXPORT_SYMBOL(memcmp); 111 - EXPORT_SYMBOL(memchr); 112 125 113 126 #ifdef CONFIG_PPC32 114 127 EXPORT_SYMBOL(timer_interrupt); 115 128 EXPORT_SYMBOL(tb_ticks_per_jiffy); 116 - EXPORT_SYMBOL(cacheable_memcpy); 117 - EXPORT_SYMBOL(cacheable_memzero); 118 129 #endif 119 130 120 131 #ifdef CONFIG_PPC32 ··· 130 155 EXPORT_SYMBOL(__mfdcr); 131 156 #endif 132 157 EXPORT_SYMBOL(empty_zero_page); 133 - 134 - #ifdef CONFIG_PPC64 135 - EXPORT_SYMBOL(__arch_hweight8); 136 - EXPORT_SYMBOL(__arch_hweight16); 137 - EXPORT_SYMBOL(__arch_hweight32); 138 - EXPORT_SYMBOL(__arch_hweight64); 139 - #endif 140 158 141 159 #ifdef CONFIG_EPAPR_PARAVIRT 142 160 EXPORT_SYMBOL(epapr_hypercall_start);
+1 -1
arch/powerpc/lib/Makefile
··· 10 10 CFLAGS_REMOVE_feature-fixups.o = -pg 11 11 12 12 obj-y := string.o alloc.o \ 13 - crtsavres.o 13 + crtsavres.o ppc_ksyms.o 14 14 obj-$(CONFIG_PPC32) += div64.o copy_32.o 15 15 obj-$(CONFIG_HAS_IOMEM) += devres.o 16 16
+39
arch/powerpc/lib/ppc_ksyms.c
··· 1 + #include <linux/string.h> 2 + #include <linux/uaccess.h> 3 + #include <linux/bitops.h> 4 + #include <net/checksum.h> 5 + 6 + EXPORT_SYMBOL(memcpy); 7 + EXPORT_SYMBOL(memset); 8 + EXPORT_SYMBOL(memmove); 9 + EXPORT_SYMBOL(memcmp); 10 + EXPORT_SYMBOL(memchr); 11 + #ifdef CONFIG_PPC32 12 + EXPORT_SYMBOL(cacheable_memcpy); 13 + EXPORT_SYMBOL(cacheable_memzero); 14 + #endif 15 + 16 + EXPORT_SYMBOL(strcpy); 17 + EXPORT_SYMBOL(strncpy); 18 + EXPORT_SYMBOL(strcat); 19 + EXPORT_SYMBOL(strlen); 20 + EXPORT_SYMBOL(strcmp); 21 + EXPORT_SYMBOL(strncmp); 22 + 23 + #ifndef CONFIG_GENERIC_CSUM 24 + EXPORT_SYMBOL(csum_partial); 25 + EXPORT_SYMBOL(csum_partial_copy_generic); 26 + EXPORT_SYMBOL(ip_fast_csum); 27 + EXPORT_SYMBOL(csum_tcpudp_magic); 28 + #endif 29 + 30 + EXPORT_SYMBOL(__copy_tofrom_user); 31 + EXPORT_SYMBOL(__clear_user); 32 + EXPORT_SYMBOL(copy_page); 33 + 34 + #ifdef CONFIG_PPC64 35 + EXPORT_SYMBOL(__arch_hweight8); 36 + EXPORT_SYMBOL(__arch_hweight16); 37 + EXPORT_SYMBOL(__arch_hweight32); 38 + EXPORT_SYMBOL(__arch_hweight64); 39 + #endif