summaryrefslogtreecommitdiffstats
path: root/arch/ppc/lib
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/lib')
-rw-r--r--arch/ppc/lib/Makefile1
-rw-r--r--arch/ppc/lib/checksum.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc/lib/Makefile b/arch/ppc/lib/Makefile
index d94420c4a..baace0862 100644
--- a/arch/ppc/lib/Makefile
+++ b/arch/ppc/lib/Makefile
@@ -4,6 +4,7 @@
L_TARGET = lib.o
L_OBJS = checksum.o cksum_support.o
+CC = gcc -I$(TOPDIR)/include
${L_TARGET}: $(L_OBJS)
$(LD) -r -o ${L_TARGET} $(L_OBJS)
diff --git a/arch/ppc/lib/checksum.c b/arch/ppc/lib/checksum.c
index 0e0a37ea0..973916f74 100644
--- a/arch/ppc/lib/checksum.c
+++ b/arch/ppc/lib/checksum.c
@@ -127,7 +127,7 @@ csum_tcpudp_magic(unsigned long saddr, unsigned long daddr, unsigned short len,
* Fold a partial checksum without adding pseudo headers
*/
-unsigned short csum_fold(unsigned int sum)
+unsigned int csum_fold(unsigned int sum)
{
sum = (sum & 0xffff) + (sum >> 16);
sum = (sum & 0xffff) + (sum >> 16);