summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-01-18 15:12:16 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-01-29 19:12:09 +0530
commitb725d448624583f7be5b43ac81a1e324745f2c3b (patch)
tree2b9b27d2fb421e4e0d4fbf442d8194932b753adb /lib
parent3b447970241112bbe8a3bf20442d7347800b4372 (diff)
asm-generic headers: Allow yet more arch overrides in checksum.h
arches can have more efficient implementation of these routines Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/checksum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/checksum.c b/lib/checksum.c
index 12dceb27ff20..129775eb6de6 100644
--- a/lib/checksum.c
+++ b/lib/checksum.c
@@ -102,6 +102,7 @@ out:
}
#endif
+#ifndef ip_fast_csum
/*
* This is a version of ip_compute_csum() optimized for IP headers,
* which always checksum on 4 octet boundaries.
@@ -111,6 +112,7 @@ __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
return (__force __sum16)~do_csum(iph, ihl*4);
}
EXPORT_SYMBOL(ip_fast_csum);
+#endif
/*
* computes the checksum of a memory block at buff, length len,