From 38af5befad69e56c4d8f5d1a0ac6537e0363420f Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 26 Aug 2022 14:54:42 +0800 Subject: [PATCH] bt_bridge: Fix error: address argument to atomic operation must be a pointer to _Atomic type Signed-off-by: Xiang Xiao --- drivers/wireless/bluetooth/bt_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/wireless/bluetooth/bt_bridge.c b/drivers/wireless/bluetooth/bt_bridge.c index eb0df53bfb9..9ef41c06b44 100644 --- a/drivers/wireless/bluetooth/bt_bridge.c +++ b/drivers/wireless/bluetooth/bt_bridge.c @@ -69,7 +69,7 @@ struct bt_bridge_s #ifdef CONFIG_BLUETOOTH_BRIDGE_BTSNOOP FAR struct snoop_s *snoop; #endif /* CONFIG_BLUETOOTH_BRIDGE_BTSNOOP */ - uint8_t refs; + atomic_uint refs; }; /****************************************************************************