Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/open-amp/resource_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <zephyr/kernel.h>
#include <resource_table.h>

extern char ram_console[];
extern char ram_console_buf[];

#define __resource Z_GENERIC_SECTION(.resource_table)

Expand Down Expand Up @@ -68,10 +68,10 @@
#if defined(CONFIG_RAM_CONSOLE)
.cm_trace = {
RSC_TRACE,
(uint32_t)ram_console, CONFIG_RAM_CONSOLE_BUFFER_SIZE, 0,
(uint32_t)ram_console_buf, CONFIG_RAM_CONSOLE_BUFFER_SIZE, 0,
"Zephyr_log",
},
#endif

Check notice on line 74 in lib/open-amp/resource_table.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

lib/open-amp/resource_table.c:74 - .hdr = { - .ver = 1, - .num = RSC_TABLE_NUM_ENTRY, - }, - .offset = { + .hdr = + { + .ver = 1, + .num = RSC_TABLE_NUM_ENTRY, + }, + .offset = + { #if (CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF > 0) - offsetof(struct fw_resource_table, vdev), + offsetof(struct fw_resource_table, vdev), #endif #if defined(CONFIG_RAM_CONSOLE) - offsetof(struct fw_resource_table, cm_trace), + offsetof(struct fw_resource_table, cm_trace), #endif - }, + }, #if (CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF > 0) /* Virtio device entry */ - .vdev = { - RSC_VDEV, VIRTIO_ID_RPMSG, 0, RPMSG_IPU_C0_FEATURES, 0, 0, 0, - VRING_COUNT, {0, 0}, - }, + .vdev = + { + RSC_VDEV, + VIRTIO_ID_RPMSG, + 0, + RPMSG_IPU_C0_FEATURES, + 0, + 0, + 0, + VRING_COUNT, + {0, 0}, + }, /* Vring rsc entry - part of vdev rsc entry */ - .vring0 = {VRING_TX_ADDRESS, VRING_ALIGNMENT, - CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF, + .vring0 = {VRING_TX_ADDRESS, VRING_ALIGNMENT, CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF, VRING0_ID, 0}, - .vring1 = {VRING_RX_ADDRESS, VRING_ALIGNMENT, - CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF, + .vring1 = {VRING_RX_ADDRESS, VRING_ALIGNMENT, CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF, VRING1_ID, 0}, #endif #if defined(CONFIG_RAM_CONSOLE) - .cm_trace = { - RSC_TRACE, - (uint32_t)ram_console_buf, CONFIG_RAM_CONSOLE_BUFFER_SIZE, 0, - "Zephyr_log", - }, + .cm_trace = + { + RSC_TRACE, + (uint32_t)ram_console_buf, + CONFIG_RAM_CONSOLE_BUFFER_SIZE, + 0, + "Zephyr_log", + },
};

void rsc_table_get(struct fw_resource_table **table_ptr, int *length)
Expand Down
Loading