From 5b1379be3e25df096d97dcd217965169fc6bb1b2 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Mon, 7 Oct 2019 15:06:52 +0200 Subject: ip: fix clang debug compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/vnet/ip/ip_packet.h | 4 +--- 1 file changed, 1 insertion(+), 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 */ /* -- cgit 1.2.3-korg