aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Kis <imre.kis@arm.com>2021-01-12 22:23:01 +0100
committerImre Kis <imre.kis@arm.com>2021-01-13 14:55:26 +0100
commitce67e6537ca226c1113527f38069995839b47af5 (patch)
tree882b46d17df2e8b9f9d95fa7513e4bd82e8a6f36
parentaaa3bed5b6fa5f35b5101e3409cb82c601dd20b5 (diff)
downloadtrusted-services-ce67e6537ca226c1113527f38069995839b47af5.tar.gz
libsp: Fix scope of sp_rxtx.c internal variables
Moving internal pointers of RX/TX buffers from global scope to file level scope. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I91133a0697c9d08deea5173e1f0a418ce631a8ce
-rw-r--r--components/messaging/ffa/libsp/sp_rxtx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/messaging/ffa/libsp/sp_rxtx.c b/components/messaging/ffa/libsp/sp_rxtx.c
index a3de270..e215610 100644
--- a/components/messaging/ffa/libsp/sp_rxtx.c
+++ b/components/messaging/ffa/libsp/sp_rxtx.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
- * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*/
#include "sp_rxtx.h"
@@ -9,9 +9,9 @@
#include <stdlib.h>
#include <stdlib.h>
-void *ffa_tx_buffer;
-const void *ffa_rx_buffer;
-size_t ffa_rxtx_size;
+static void *ffa_tx_buffer;
+static const void *ffa_rx_buffer;
+static size_t ffa_rxtx_size;
sp_result sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer,
size_t size)