From 2b441c6a4fcac6687a19917aafe5ef27570f87b9 Mon Sep 17 00:00:00 2001 From: Florian Grandel Date: Tue, 5 Sep 2023 18:23:45 +0200 Subject: [PATCH] [nrf fromtree] net: l2: ieee802154: pkt: fix cpp build failure CPP needs an additional cast. Fixes: #62282 Signed-off-by: Florian Grandel (cherry picked from commit 718fe844c2f5c7bc3d6364913f08f9542a3ec44a) --- include/zephyr/net/ieee802154_pkt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zephyr/net/ieee802154_pkt.h b/include/zephyr/net/ieee802154_pkt.h index 23921467d96..a1dca472448 100644 --- a/include/zephyr/net/ieee802154_pkt.h +++ b/include/zephyr/net/ieee802154_pkt.h @@ -92,7 +92,7 @@ static inline void *net_pkt_cb(struct net_pkt *pkt); static inline struct net_pkt_cb_ieee802154 *net_pkt_cb_ieee802154(struct net_pkt *pkt) { - return net_pkt_cb(pkt); + return (struct net_pkt_cb_ieee802154 *)net_pkt_cb(pkt); }; static inline uint8_t net_pkt_ieee802154_lqi(struct net_pkt *pkt)