diff --git a/lib/nrf_modem_lib/nrf_modem_os_rpc.c b/lib/nrf_modem_lib/nrf_modem_os_rpc.c index e6a1bb1740d2..033299e4f9e7 100644 --- a/lib/nrf_modem_lib/nrf_modem_os_rpc.c +++ b/lib/nrf_modem_lib/nrf_modem_os_rpc.c @@ -18,7 +18,9 @@ #include #include -#define DCACHE_LINE_SIZE 0 +#define DCACHE_LINE_SIZE (CONFIG_DCACHE_LINE_SIZE) +BUILD_ASSERT(DCACHE_LINE_SIZE == 32 + "Unexpected data cache line size " STRINGIFY(DCACHE_LINE_SIZE) ", expected 32"); /** Structure to hold pbuf configuration and data. */ struct nrf_modem_pbuf {