Skip to content

Commit ecdef39

Browse files
rveerama1nashif
authored andcommitted
drivers: sam_gmac: Fix compilation warning
Line continuation was missing for #error macro. Fixes #15096 Signed-off-by: Ravi kumar Veeramally <[email protected]>
1 parent 16dd53b commit ecdef39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/ethernet/eth_sam_gmac.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
5757

5858
#if CONFIG_NET_BUF_DATA_SIZE * (CONFIG_NET_BUF_RX_COUNT - \
5959
CONFIG_ETH_SAM_GMAC_BUF_RX_COUNT) < GMAC_FRAME_SIZE_MAX
60-
#error Remaining free RX data buffers (CONFIG_NET_BUF_RX_COUNT -
61-
CONFIG_ETH_SAM_GMAC_BUF_RX_COUNT) * CONFIG_NET_BUF_DATA_SIZE
62-
are not large enough to hold a full frame
60+
#error (CONFIG_NET_BUF_RX_COUNT - CONFIG_ETH_SAM_GMAC_BUF_RX_COUNT) * \
61+
CONFIG_NET_BUF_DATA_SIZE are not large enough to hold a full frame
6362
#endif
6463

6564
#if CONFIG_NET_BUF_DATA_SIZE & 0x3F

0 commit comments

Comments
 (0)