diff --git a/include/bm/softdevice_handler/nrf_sdh.h b/include/bm/softdevice_handler/nrf_sdh.h index e33fb3646c..819e59d5fd 100644 --- a/include/bm/softdevice_handler/nrf_sdh.h +++ b/include/bm/softdevice_handler/nrf_sdh.h @@ -150,8 +150,8 @@ struct nrf_sdh_state_evt_observer { #define NRF_SDH_STATE_EVT_OBSERVER(_observer, _handler, _ctx, _prio) \ PRIO_LEVEL_IS_VALID(_prio); \ static int _handler(enum nrf_sdh_state_evt, void *); \ - TYPE_SECTION_ITERABLE(struct nrf_sdh_state_evt_observer, _observer, \ - nrf_sdh_state_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \ + static TYPE_SECTION_ITERABLE(struct nrf_sdh_state_evt_observer, _observer, \ + nrf_sdh_state_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \ .handler = _handler, \ .context = _ctx, \ } @@ -191,8 +191,8 @@ struct nrf_sdh_stack_evt_observer { #define NRF_SDH_STACK_EVT_OBSERVER(_observer, _handler, _ctx, _prio) \ PRIO_LEVEL_IS_VALID(_prio); \ static void _handler(void *); \ - const TYPE_SECTION_ITERABLE(struct nrf_sdh_stack_evt_observer, _observer, \ - nrf_sdh_stack_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \ + static const TYPE_SECTION_ITERABLE(struct nrf_sdh_stack_evt_observer, _observer, \ + nrf_sdh_stack_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \ .handler = _handler, \ .context = _ctx, \ } diff --git a/include/bm/softdevice_handler/nrf_sdh_soc.h b/include/bm/softdevice_handler/nrf_sdh_soc.h index ebe9884a84..595e27814f 100644 --- a/include/bm/softdevice_handler/nrf_sdh_soc.h +++ b/include/bm/softdevice_handler/nrf_sdh_soc.h @@ -53,8 +53,8 @@ struct nrf_sdh_soc_evt_observer { */ #define NRF_SDH_SOC_OBSERVER(_observer, _handler, _ctx, _prio) \ PRIO_LEVEL_IS_VALID(_prio); \ - const TYPE_SECTION_ITERABLE(struct nrf_sdh_soc_evt_observer, _observer, \ - nrf_sdh_soc_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \ + static const TYPE_SECTION_ITERABLE(struct nrf_sdh_soc_evt_observer, _observer, \ + nrf_sdh_soc_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \ .handler = _handler, \ .context = _ctx, \ }