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
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)