diff --git a/drivers/bluetooth/controller/ll/ctrl_internal.h b/drivers/bluetooth/controller/ll/ctrl_internal.h index c90c45b288f..bddc406337c 100644 --- a/drivers/bluetooth/controller/ll/ctrl_internal.h +++ b/drivers/bluetooth/controller/ll/ctrl_internal.h @@ -209,12 +209,12 @@ struct pdu_data_q_tx { #define LL_MEM_TXQ (sizeof(struct pdu_data_q_tx) * \ (RADIO_PACKET_COUNT_TX_MAX + 2)) -#define LL_MEM_RX_POOL_SZ (ALIGN4(__builtin_offsetof(struct radio_pdu_node_rx,\ +#define LL_MEM_RX_POOL_SZ (ALIGN4(offsetof(struct radio_pdu_node_rx,\ pdu_data) + ((\ (RADIO_ACPDU_SIZE_MAX + 1) < \ - (__builtin_offsetof(struct pdu_data, payload) + \ + (offsetof(struct pdu_data, payload) + \ RADIO_LL_LENGTH_OCTETS_RX_MAX)) ? \ - (__builtin_offsetof(struct pdu_data, payload) + \ + (offsetof(struct pdu_data, payload) + \ RADIO_LL_LENGTH_OCTETS_RX_MAX) \ : \ (RADIO_ACPDU_SIZE_MAX + 1))) * \ @@ -223,13 +223,13 @@ struct pdu_data_q_tx { #define LL_MEM_RX_LINK_POOL (sizeof(void *) * 2 * ((RADIO_PACKET_COUNT_RX_MAX +\ 4) + RADIO_CONNECTION_CONTEXT_MAX)) -#define LL_MEM_TX_CTRL_POOL ((ALIGN4(__builtin_offsetof( \ +#define LL_MEM_TX_CTRL_POOL ((ALIGN4(offsetof( \ struct radio_pdu_node_tx, pdu_data) + \ - __builtin_offsetof(struct pdu_data, payload) + 27)) * \ + offsetof(struct pdu_data, payload) + 27)) * \ PACKET_MEM_COUNT_TX_CTRL) -#define LL_MEM_TX_DATA_POOL ((ALIGN4(__builtin_offsetof( \ +#define LL_MEM_TX_DATA_POOL ((ALIGN4(offsetof( \ struct radio_pdu_node_tx, pdu_data) + \ - __builtin_offsetof(struct pdu_data, payload) + \ + offsetof(struct pdu_data, payload) + \ RADIO_LL_LENGTH_OCTETS_RX_MAX)) \ * (RADIO_PACKET_COUNT_TX_MAX + 1))