Error when enable BLE host and RPMsg/openAMP on application core on nrf5340dk

Hi

I'm trying to enable BLE host-only build on Application core on nrf5340dk, and also enable RPMsg/openAMP.

I'm using Zephyr and its build system.

I get the following error when building:

/workdir/base/platform/zephyr/subsys/ipc/rpmsg_service/rpmsg_backend.c:160:13: error: 'ipm_callback' defined but not used [-Werror=unused-function]
  160 | static void ipm_callback(const struct device *dev,

When I search around in the project I see that "ipm_callback()" is used inside an "ifdef"

#if defined(CONFIG_RPMSG_SERVICE_DUAL_IPM_SUPPORT)

    /* some other code here */
    
	ipm_register_callback(ipm_rx_handle, ipm_callback, NULL);

#elif defined(CONFIG_RPMSG_SERVICE_SINGLE_IPM_SUPPORT)

    /* some other code here */
    
	ipm_register_callback(ipm_rx_handle, ipm_callback, NULL);

But I'm not able to define CONFIG_RPMSG_SERVICE_DUAL_IPM_SUPPORT in the .conf file.

Related