summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-07 15:06:52 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-22 11:18:38 +0000
commite36e5cbac4a5e7948f8a9bab9d22d6a9c31bc99c (patch)
tree978b805c8ebaa1b0dacfdd99877f496aa90ba36d /src/vnet/ip
parent4ac265adc6560ae19b3877ef1b61ac0b2ad703e2 (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> (cherry picked from commit 5b1379be3e25df096d97dcd217965169fc6bb1b2)
Diffstat (limited to 'src/vnet/ip')
-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 */
/*