Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4ac265a
)
ip: fix clang debug compilation
51/22851/2
author
Benoît Ganne
<
[email protected]
>
Mon, 7 Oct 2019 13:06:52 +0000
(15:06 +0200)
committer
Andrew Yourtchenko
<
[email protected]
>
Tue, 22 Oct 2019 11:18:38 +0000
(11:18 +0000)
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 <
[email protected]
>
(cherry picked from commit
5b1379be3e25df096d97dcd217965169fc6bb1b2
)
src/vnet/ip/ip_packet.h
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip_packet.h
b/src/vnet/ip/ip_packet.h
index
97b3c96
..
63a59f8
100644
(file)
--- 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 */
/*