diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/Kconfig | 3 | ||||
-rw-r--r-- | arch/powerpc/include/asm/checksum.h | 5 | ||||
-rw-r--r-- | arch/powerpc/kernel/ppc_ksyms.c | 2 | ||||
-rw-r--r-- | arch/powerpc/lib/Makefile | 9 |
4 files changed, 17 insertions, 2 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 38f3b7e47ec5..2c69c43ba68e 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -139,6 +139,9 @@ config PPC | |||
139 | select OLD_SIGACTION if PPC32 | 139 | select OLD_SIGACTION if PPC32 |
140 | select HAVE_DEBUG_STACKOVERFLOW | 140 | select HAVE_DEBUG_STACKOVERFLOW |
141 | 141 | ||
142 | config GENERIC_CSUM | ||
143 | def_bool CPU_LITTLE_ENDIAN | ||
144 | |||
142 | config EARLY_PRINTK | 145 | config EARLY_PRINTK |
143 | bool | 146 | bool |
144 | default y | 147 | default y |
diff --git a/arch/powerpc/include/asm/checksum.h b/arch/powerpc/include/asm/checksum.h index ce0c28495f9a..8251a3ba870f 100644 --- a/arch/powerpc/include/asm/checksum.h +++ b/arch/powerpc/include/asm/checksum.h | |||
@@ -14,6 +14,9 @@ | |||
14 | * which always checksum on 4 octet boundaries. ihl is the number | 14 | * which always checksum on 4 octet boundaries. ihl is the number |
15 | * of 32-bit words and is always >= 5. | 15 | * of 32-bit words and is always >= 5. |
16 | */ | 16 | */ |
17 | #ifdef CONFIG_GENERIC_CSUM | ||
18 | #include <asm-generic/checksum.h> | ||
19 | #else | ||
17 | extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); | 20 | extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); |
18 | 21 | ||
19 | /* | 22 | /* |
@@ -123,5 +126,7 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, | |||
123 | return sum; | 126 | return sum; |
124 | #endif | 127 | #endif |
125 | } | 128 | } |
129 | |||
130 | #endif | ||
126 | #endif /* __KERNEL__ */ | 131 | #endif /* __KERNEL__ */ |
127 | #endif | 132 | #endif |
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index 21646dbe1bb3..3b485c5cff10 100644 --- a/arch/powerpc/kernel/ppc_ksyms.c +++ b/arch/powerpc/kernel/ppc_ksyms.c | |||
@@ -79,10 +79,12 @@ EXPORT_SYMBOL(strlen); | |||
79 | EXPORT_SYMBOL(strcmp); | 79 | EXPORT_SYMBOL(strcmp); |
80 | EXPORT_SYMBOL(strncmp); | 80 | EXPORT_SYMBOL(strncmp); |
81 | 81 | ||
82 | #ifndef CONFIG_GENERIC_CSUM | ||
82 | EXPORT_SYMBOL(csum_partial); | 83 | EXPORT_SYMBOL(csum_partial); |
83 | EXPORT_SYMBOL(csum_partial_copy_generic); | 84 | EXPORT_SYMBOL(csum_partial_copy_generic); |
84 | EXPORT_SYMBOL(ip_fast_csum); | 85 | EXPORT_SYMBOL(ip_fast_csum); |
85 | EXPORT_SYMBOL(csum_tcpudp_magic); | 86 | EXPORT_SYMBOL(csum_tcpudp_magic); |
87 | #endif | ||
86 | 88 | ||
87 | EXPORT_SYMBOL(__copy_tofrom_user); | 89 | EXPORT_SYMBOL(__copy_tofrom_user); |
88 | EXPORT_SYMBOL(__clear_user); | 90 | EXPORT_SYMBOL(__clear_user); |
diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 450433276699..33ab26112123 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile | |||
@@ -10,15 +10,20 @@ CFLAGS_REMOVE_code-patching.o = -pg | |||
10 | CFLAGS_REMOVE_feature-fixups.o = -pg | 10 | CFLAGS_REMOVE_feature-fixups.o = -pg |
11 | 11 | ||
12 | obj-y := string.o alloc.o \ | 12 | obj-y := string.o alloc.o \ |
13 | checksum_$(CONFIG_WORD_SIZE).o crtsavres.o | 13 | crtsavres.o |
14 | obj-$(CONFIG_PPC32) += div64.o copy_32.o | 14 | obj-$(CONFIG_PPC32) += div64.o copy_32.o |
15 | obj-$(CONFIG_HAS_IOMEM) += devres.o | 15 | obj-$(CONFIG_HAS_IOMEM) += devres.o |
16 | 16 | ||
17 | obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \ | 17 | obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \ |
18 | memcpy_64.o usercopy_64.o mem_64.o string.o \ | 18 | memcpy_64.o usercopy_64.o mem_64.o string.o \ |
19 | checksum_wrappers_64.o hweight_64.o \ | 19 | hweight_64.o \ |
20 | copyuser_power7.o string_64.o copypage_power7.o \ | 20 | copyuser_power7.o string_64.o copypage_power7.o \ |
21 | memcpy_power7.o | 21 | memcpy_power7.o |
22 | ifeq ($(CONFIG_GENERIC_CSUM),) | ||
23 | obj-y += checksum_$(CONFIG_WORD_SIZE).o | ||
24 | obj-$(CONFIG_PPC64) += checksum_wrappers_64.o | ||
25 | endif | ||
26 | |||
22 | obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o | 27 | obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o |
23 | 28 | ||
24 | ifeq ($(CONFIG_PPC64),y) | 29 | ifeq ($(CONFIG_PPC64),y) |