From 85462d17a5f46f53493c6ac7541ab77a03cce28e Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Tue, 25 Jan 2022 11:17:15 +0700 Subject: [PATCH] components/bt: move deinit_semaphore definition to source file --- components/bt/host/bluedroid/bta/dm/bta_dm_main.c | 1 + components/bt/host/bluedroid/bta/dm/include/bta_dm_int.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/bta/dm/bta_dm_main.c b/components/bt/host/bluedroid/bta/dm/bta_dm_main.c index b95a793e23..fdc19fedce 100644 --- a/components/bt/host/bluedroid/bta/dm/bta_dm_main.c +++ b/components/bt/host/bluedroid/bta/dm/bta_dm_main.c @@ -42,6 +42,7 @@ tBTA_DM_DI_CB bta_dm_di_cb; tBTA_DM_CB *bta_dm_cb_ptr; tBTA_DM_SEARCH_CB *bta_dm_search_cb_ptr; tBTA_DM_DI_CB *bta_dm_di_cb_ptr; +SemaphoreHandle_t deinit_semaphore; #endif diff --git a/components/bt/host/bluedroid/bta/dm/include/bta_dm_int.h b/components/bt/host/bluedroid/bta/dm/include/bta_dm_int.h index 8d2f106d0d..30b3b5a995 100644 --- a/components/bt/host/bluedroid/bta/dm/include/bta_dm_int.h +++ b/components/bt/host/bluedroid/bta/dm/include/bta_dm_int.h @@ -1481,7 +1481,7 @@ extern tBTA_DM_DI_CB bta_dm_di_cb; #else extern tBTA_DM_DI_CB *bta_dm_di_cb_ptr; #define bta_dm_di_cb (*bta_dm_di_cb_ptr) -SemaphoreHandle_t deinit_semaphore; +extern SemaphoreHandle_t deinit_semaphore; #endif #if BTA_DYNAMIC_MEMORY == FALSE