Mesh 2.9 cherry picks #7808
compliance.yml
on: pull_request
Run compliance checks on patch series (PR)
2m 30s
Annotations
1 error, 1 warning, and 4 notices
Run compliance checks on patch series (PR)
Process completed with exit code 1.
|
Run compliance checks on patch series (PR):
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- if (IS_ENABLED(CONFIG_BT_MESH_ADV_EXT_GATT_SEPARATE) &&
- tags & BT_MESH_ADV_TAG_BIT_PROXY) {
+ if (IS_ENABLED(CONFIG_BT_MESH_ADV_EXT_GATT_SEPARATE) && tags & BT_MESH_ADV_TAG_BIT_PROXY) {
File:subsys/bluetooth/mesh/adv.c
Line:238
You may want to run clang-format on this change:
-#define ADV_SLOW_INT \
- .interval_min = BT_GAP_ADV_SLOW_INT_MIN, \
- .interval_max = BT_GAP_ADV_SLOW_INT_MAX
+#define ADV_SLOW_INT \
+ .interval_min = BT_GAP_ADV_SLOW_INT_MIN, .interval_max = BT_GAP_ADV_SLOW_INT_MAX
-#define ADV_FAST_INT \
- .interval_min = BT_GAP_ADV_FAST_INT_MIN_2, \
- .interval_max = BT_GAP_ADV_FAST_INT_MAX_2
+#define ADV_FAST_INT \
+ .interval_min = BT_GAP_ADV_FAST_INT_MIN_2, .interval_max = BT_GAP_ADV_FAST_INT_MAX_2
-#define BT_DEVICE_NAME (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? \
- (const uint8_t *)bt_get_name() : \
- (const uint8_t *)CONFIG_BT_DEVICE_NAME)
-#define BT_DEVICE_NAME_LEN (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? strlen(bt_get_name()) : \
- (sizeof(CONFIG_BT_DEVICE_NAME) - 1))
+#define BT_DEVICE_NAME \
+ (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? (const uint8_t *)bt_get_name() \
+ : (const uint8_t *)CONFIG_BT_DEVICE_NAME)
+#define BT_DEVICE_NAME_LEN \
+ (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? strlen(bt_get_name()) \
+ : (sizeof(CONFIG_BT_DEVICE_NAME) - 1))
File:subsys/bluetooth/mesh/gatt.h
Line:20
You may want to run clang-format on this change:
- type == BT_MESH_ID_TYPE_PRIV_NET ? &slow_adv_param : &fast_adv_param,
- duration, enc_id_ad, ARRAY_SIZE(enc_id_ad),
+ type == BT_MESH_ID_TYPE_PRIV_NET ? &slow_adv_param : &fast_adv_param, duration,
+ enc_id_ad, ARRAY_SIZE(enc_id_ad),
File:subsys/bluetooth/mesh/proxy_srv.c
Line:537
You may want to run clang-format on this change:
- err = bt_mesh_adv_gatt_start(&slow_adv_param, duration, net_id_ad,
- ARRAY_SIZE(net_id_ad),
- IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ? sd : NULL,
- IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ?
- ARRAY_SIZE(sd) : 0);
+ err = bt_mesh_adv_gatt_start(
+ &slow_adv_param, duration, net_id_ad, ARRAY_SIZE(net_id_ad),
+ IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ? sd : NULL,
+ IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ? ARRAY_SIZE(sd) : 0);
File:subsys/bluetooth/mesh/proxy_srv.c
Line:634
|
You may want to run clang-format on this change:
subsys/bluetooth/mesh/adv.c#L238
subsys/bluetooth/mesh/adv.c:238
- if (IS_ENABLED(CONFIG_BT_MESH_ADV_EXT_GATT_SEPARATE) &&
- tags & BT_MESH_ADV_TAG_BIT_PROXY) {
+ if (IS_ENABLED(CONFIG_BT_MESH_ADV_EXT_GATT_SEPARATE) && tags & BT_MESH_ADV_TAG_BIT_PROXY) {
|
You may want to run clang-format on this change:
subsys/bluetooth/mesh/gatt.h#L20
subsys/bluetooth/mesh/gatt.h:20
-#define ADV_SLOW_INT \
- .interval_min = BT_GAP_ADV_SLOW_INT_MIN, \
- .interval_max = BT_GAP_ADV_SLOW_INT_MAX
+#define ADV_SLOW_INT \
+ .interval_min = BT_GAP_ADV_SLOW_INT_MIN, .interval_max = BT_GAP_ADV_SLOW_INT_MAX
-#define ADV_FAST_INT \
- .interval_min = BT_GAP_ADV_FAST_INT_MIN_2, \
- .interval_max = BT_GAP_ADV_FAST_INT_MAX_2
+#define ADV_FAST_INT \
+ .interval_min = BT_GAP_ADV_FAST_INT_MIN_2, .interval_max = BT_GAP_ADV_FAST_INT_MAX_2
-#define BT_DEVICE_NAME (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? \
- (const uint8_t *)bt_get_name() : \
- (const uint8_t *)CONFIG_BT_DEVICE_NAME)
-#define BT_DEVICE_NAME_LEN (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? strlen(bt_get_name()) : \
- (sizeof(CONFIG_BT_DEVICE_NAME) - 1))
+#define BT_DEVICE_NAME \
+ (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? (const uint8_t *)bt_get_name() \
+ : (const uint8_t *)CONFIG_BT_DEVICE_NAME)
+#define BT_DEVICE_NAME_LEN \
+ (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? strlen(bt_get_name()) \
+ : (sizeof(CONFIG_BT_DEVICE_NAME) - 1))
|
You may want to run clang-format on this change:
subsys/bluetooth/mesh/proxy_srv.c#L537
subsys/bluetooth/mesh/proxy_srv.c:537
- type == BT_MESH_ID_TYPE_PRIV_NET ? &slow_adv_param : &fast_adv_param,
- duration, enc_id_ad, ARRAY_SIZE(enc_id_ad),
+ type == BT_MESH_ID_TYPE_PRIV_NET ? &slow_adv_param : &fast_adv_param, duration,
+ enc_id_ad, ARRAY_SIZE(enc_id_ad),
|
You may want to run clang-format on this change:
subsys/bluetooth/mesh/proxy_srv.c#L634
subsys/bluetooth/mesh/proxy_srv.c:634
- err = bt_mesh_adv_gatt_start(&slow_adv_param, duration, net_id_ad,
- ARRAY_SIZE(net_id_ad),
- IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ? sd : NULL,
- IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ?
- ARRAY_SIZE(sd) : 0);
+ err = bt_mesh_adv_gatt_start(
+ &slow_adv_param, duration, net_id_ad, ARRAY_SIZE(net_id_ad),
+ IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ? sd : NULL,
+ IS_ENABLED(CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME) ? ARRAY_SIZE(sd) : 0);
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
compliance.xml
|
1.16 KB |
|