aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Kis <imre.kis@arm.com>2021-01-13 10:51:27 +0100
committerGy├Ârgy Szing <gyorgy.szing@arm.com>2021-02-02 10:00:13 +0000
commit21e0665c8f3071c93159f15666203fdd3f6eb803 (patch)
tree7be646b3671e9ab8da42a90f6b07d7cc277d4032
parentd614cc4be0e37dad0d774cd63fb6e28487f87ebd (diff)
downloadtrusted-services-21e0665c8f3071c93159f15666203fdd3f6eb803.tar.gz
libsp: Fix SP memory management formatting
Apply Linux coding style to sp_memory_management.c. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I0a9deb9e9847c4b5fe0a19893fbf69034b764dc2
-rw-r--r--components/messaging/ffa/libsp/sp_memory_management.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/components/messaging/ffa/libsp/sp_memory_management.c b/components/messaging/ffa/libsp/sp_memory_management.c
index 4183660..52d03ac 100644
--- a/components/messaging/ffa/libsp/sp_memory_management.c
+++ b/components/messaging/ffa/libsp/sp_memory_management.c
@@ -271,8 +271,7 @@ static void parse_descriptors(struct ffa_mem_transaction_buffer *buffer,
acc_desc[i].receiver_id = acc->mem_access_perm_desc.endpoint_id;
acc_perm = acc->mem_access_perm_desc.mem_access_permissions;
- parse_mem_access_perm(acc_perm,
- &acc_desc[i].instruction_access,
+ parse_mem_access_perm(acc_perm, &acc_desc[i].instruction_access,
&acc_desc[i].data_access);
}
@@ -293,7 +292,7 @@ static void parse_descriptors(struct ffa_mem_transaction_buffer *buffer,
static sp_result sp_mem_is_dynamic_supported(uint32_t func_id, bool *support)
{
- struct ffa_interface_properties interface_props = {0};
+ struct ffa_interface_properties interface_props = { 0 };
uint32_t *props = NULL;
ffa_result result = FFA_OK;
@@ -319,7 +318,7 @@ sp_result sp_memory_donate(struct sp_memory_descriptor *descriptor,
struct sp_memory_region regions[],
uint32_t region_count, uint64_t *handle)
{
- struct ffa_mem_transaction_buffer buffer = {0};
+ struct ffa_mem_transaction_buffer buffer = { 0 };
sp_result sp_res = SP_RESULT_OK;
ffa_result ffa_res = FFA_OK;
@@ -384,7 +383,7 @@ sp_result sp_memory_lend(struct sp_memory_descriptor *descriptor,
struct sp_memory_region regions[],
uint32_t region_count, uint64_t *handle)
{
- struct ffa_mem_transaction_buffer buffer = {0};
+ struct ffa_mem_transaction_buffer buffer = { 0 };
sp_result sp_res = SP_RESULT_OK;
ffa_result ffa_res = FFA_OK;
@@ -451,7 +450,7 @@ sp_result sp_memory_share(struct sp_memory_descriptor *descriptor,
struct sp_memory_region regions[],
uint32_t region_count, uint64_t *handle)
{
- struct ffa_mem_transaction_buffer buffer = {0};
+ struct ffa_mem_transaction_buffer buffer = { 0 };
sp_result sp_res = SP_RESULT_OK;
ffa_result ffa_res = FFA_OK;
@@ -518,8 +517,8 @@ sp_result sp_memory_retrieve(struct sp_memory_descriptor *descriptor,
uint32_t in_region_count,
uint32_t *out_region_count, uint64_t handle)
{
- struct ffa_mem_transaction_buffer tx_buffer = {0};
- struct ffa_mem_transaction_buffer rx_buffer = {0};
+ struct ffa_mem_transaction_buffer tx_buffer = { 0 };
+ struct ffa_mem_transaction_buffer rx_buffer = { 0 };
sp_result sp_res = SP_RESULT_OK;
ffa_result ffa_res = FFA_OK;
uint32_t resp_total_length = 0;
@@ -631,7 +630,7 @@ sp_result sp_memory_relinquish(uint64_t handle, const uint16_t endpoints[],
uint32_t endpoint_count,
struct sp_memory_transaction_flags *flags)
{
- struct ffa_mem_transaction_buffer buffer = {0};
+ struct ffa_mem_transaction_buffer buffer = { 0 };
sp_result sp_res = SP_RESULT_OK;
ffa_result ffa_res = FFA_OK;
struct ffa_mem_relinquish_desc *relinquish_desc = NULL;