Skip to content
Commit 67e07b7a authored by Tom Hughes's avatar Tom Hughes Committed by Anas Nashif
Browse files

net: utils: Fix unused function warning



Building with clang warns:

subsys/net/ip/utils.c:600:24: error: unused function 'pkt_calc_chksum'
[-Werror,-Wunused-function]
static inline uint16_t pkt_calc_chksum(struct net_pkt *pkt, uint16_t sum)
                       ^

pkt_calc_chksum is called by net_calc_chksum, which only exists when
CONFIG_NET_NATIVE_IP is defined.

Signed-off-by: default avatarTom Hughes <tomhughes@chromium.org>
parent 820aff10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment