drivers: mbox: add IVSHMEM based mbox driver #149658
Annotations
1 error, 1 warning, and 1 notice
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
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 MBOX_IVSHMEM_INIT(inst) \
- static const struct ivshmem_mbox_config ivshmem_mbox_cfg_##inst = { \
- .ivshmem_dev = DEVICE_DT_GET(DT_INST_PHANDLE(inst, ivshmem)), \
- }; \
- static struct ivshmem_mbox_data ivshmem_mbox_data_##inst = { \
- .cb = NULL, \
- .user_data = NULL, \
- }; \
- DEVICE_DT_INST_DEFINE(inst, ivshmem_mbox_init, NULL, &ivshmem_mbox_data_##inst, \
- &ivshmem_mbox_cfg_##inst, POST_KERNEL, \
+#define MBOX_IVSHMEM_INIT(inst) \
+ static const struct ivshmem_mbox_config ivshmem_mbox_cfg_##inst = { \
+ .ivshmem_dev = DEVICE_DT_GET(DT_INST_PHANDLE(inst, ivshmem)), \
+ }; \
+ static struct ivshmem_mbox_data ivshmem_mbox_data_##inst = { \
+ .cb = NULL, \
+ .user_data = NULL, \
+ }; \
+ DEVICE_DT_INST_DEFINE(inst, ivshmem_mbox_init, NULL, &ivshmem_mbox_data_##inst, \
+ &ivshmem_mbox_cfg_##inst, POST_KERNEL, \
File:drivers/mbox/mbox_ivshmem.c
Line:153
|
Run Compliance Tests:
drivers/mbox/mbox_ivshmem.c#L153
drivers/mbox/mbox_ivshmem.c:153
-#define MBOX_IVSHMEM_INIT(inst) \
- static const struct ivshmem_mbox_config ivshmem_mbox_cfg_##inst = { \
- .ivshmem_dev = DEVICE_DT_GET(DT_INST_PHANDLE(inst, ivshmem)), \
- }; \
- static struct ivshmem_mbox_data ivshmem_mbox_data_##inst = { \
- .cb = NULL, \
- .user_data = NULL, \
- }; \
- DEVICE_DT_INST_DEFINE(inst, ivshmem_mbox_init, NULL, &ivshmem_mbox_data_##inst, \
- &ivshmem_mbox_cfg_##inst, POST_KERNEL, \
+#define MBOX_IVSHMEM_INIT(inst) \
+ static const struct ivshmem_mbox_config ivshmem_mbox_cfg_##inst = { \
+ .ivshmem_dev = DEVICE_DT_GET(DT_INST_PHANDLE(inst, ivshmem)), \
+ }; \
+ static struct ivshmem_mbox_data ivshmem_mbox_data_##inst = { \
+ .cb = NULL, \
+ .user_data = NULL, \
+ }; \
+ DEVICE_DT_INST_DEFINE(inst, ivshmem_mbox_init, NULL, &ivshmem_mbox_data_##inst, \
+ &ivshmem_mbox_cfg_##inst, POST_KERNEL, \
|
Loading