From 8131d848f2ee48cd7afb4f1632cb3bc26304b1d4 Mon Sep 17 00:00:00 2001 From: Lingao Meng Date: Fri, 13 Aug 2021 14:12:19 +0800 Subject: [PATCH] Bluetooth: Mesh: Missing _ when concate with _name Add `_` for concate with _name. Signed-off-by: Lingao Meng --- include/bluetooth/mesh/main.h | 12 ++++++------ include/bluetooth/mesh/proxy.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/bluetooth/mesh/main.h b/include/bluetooth/mesh/main.h index 5853adb7775..71fccd80ce4 100644 --- a/include/bluetooth/mesh/main.h +++ b/include/bluetooth/mesh/main.h @@ -598,9 +598,9 @@ struct bt_mesh_lpn_cb { * * @param _name Name of callback structure. */ -#define BT_MESH_LPN_CB_DEFINE(_name) \ - static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \ - _CONCAT(bt_mesh_lpn_cb, \ +#define BT_MESH_LPN_CB_DEFINE(_name) \ + static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \ + _CONCAT(bt_mesh_lpn_cb_, \ _name)) /** Friend Node callback functions. */ @@ -651,9 +651,9 @@ struct bt_mesh_friend_cb { * * @param _name Name of callback structure. */ -#define BT_MESH_FRIEND_CB_DEFINE(_name) \ - static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \ - _CONCAT(bt_mesh_friend_cb, \ +#define BT_MESH_FRIEND_CB_DEFINE(_name) \ + static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \ + _CONCAT(bt_mesh_friend_cb_, \ _name)) /** @brief Terminate Friendship. diff --git a/include/bluetooth/mesh/proxy.h b/include/bluetooth/mesh/proxy.h index 24d2b2713a0..3c8863f6b61 100644 --- a/include/bluetooth/mesh/proxy.h +++ b/include/bluetooth/mesh/proxy.h @@ -51,7 +51,7 @@ struct bt_mesh_proxy_cb { */ #define BT_MESH_PROXY_CB_DEFINE(_name) \ static const STRUCT_SECTION_ITERABLE( \ - bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb, _name)) + bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb_, _name)) /** @brief Enable advertising with Node Identity. *