aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-07 15:06:52 +0200
committerNeale Ranns <nranns@cisco.com>2019-10-10 20:31:58 +0000
commit5b1379be3e25df096d97dcd217965169fc6bb1b2 (patch)
treeabedced42e41642e3e661b688f05f1a55d516018
parent7fbdb6aa5602a74f946ffa333aea8e8e74b9639d (diff)
ip: fix clang debug compilation
The non-extern declaration confuses clang linker in debug mode. The function is defined as inline above anyway. Type: fix Fixes: c6215d902f Change-Id: Ic7e4477631cf0bcfb31ab3f81effe3642dd4223e Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/vnet/ip/ip_packet.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/ip/ip_packet.h b/src/vnet/ip/ip_packet.h
index 97b3c96b2ce..63a59f87668 100644
--- a/src/vnet/ip/ip_packet.h
+++ b/src/vnet/ip/ip_packet.h
@@ -288,6 +288,7 @@ ip_csum_fold (ip_csum_t c)
extern ip_csum_t (*vnet_incremental_checksum_fp) (ip_csum_t, void *, uword);
+/* Checksum routine. */
always_inline ip_csum_t
ip_incremental_checksum (ip_csum_t sum, void *_data, uword n_bytes)
{
@@ -300,9 +301,6 @@ ip_csum_and_memcpy_fold (ip_csum_t sum, void *dst)
return ip_csum_fold (sum);
}
-/* Checksum routine. */
-ip_csum_t ip_incremental_checksum (ip_csum_t sum, void *data, uword n_bytes);
-
#endif /* included_ip_packet_h */
/*