Skip to content

device.h: fix inconsistent semicolon logic for DEVICE_DT_DEFINE #152343

device.h: fix inconsistent semicolon logic for DEVICE_DT_DEFINE

device.h: fix inconsistent semicolon logic for DEVICE_DT_DEFINE #152343

Triggered via pull request October 1, 2024 15:58
Status Success
Total duration 3m 6s
Artifacts 1

compliance.yml

on: pull_request
Run compliance checks on patch series (PR)
2m 53s
Run compliance checks on patch series (PR)
Fit to window
Zoom out
Zoom in

Annotations

1 error, 1 warning, and 1 notice
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: -#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \ - ...) \ - Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \ - Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), \ - DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \ - level, prio, api, \ - &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), \ - __VA_ARGS__) \ +#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, ...) \ + Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \ + Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), DEVICE_DT_NAME(node_id), init_fn, \ + pm, data, config, level, prio, api, \ + &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), __VA_ARGS__) \ File:include/zephyr/device.h Line:211
You may want to run clang-format on this change: include/zephyr/device.h#L211
include/zephyr/device.h:211 -#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \ - ...) \ - Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \ - Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), \ - DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \ - level, prio, api, \ - &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), \ - __VA_ARGS__) \ +#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, ...) \ + Z_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id)); \ + Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), DEVICE_DT_NAME(node_id), init_fn, \ + pm, data, config, level, prio, api, \ + &Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)), __VA_ARGS__) \

Artifacts

Produced during runtime
Name Size
compliance.xml Expired
781 Bytes