tests: newlib: thread_safety: Fix test function scope
This commit adds the `static` keyword to the test functions that are not intended to be globally available. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
43b8002b14
commit
b37ee6998d
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
static struct k_thread tdata[THREAD_COUNT];
|
||||
static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREAD_COUNT, STACK_SIZE);
|
||||
|
||||
void malloc_thread(void *p1, void *p2, void *p3)
|
||||
static void malloc_thread(void *p1, void *p2, void *p3)
|
||||
{
|
||||
static atomic_t count;
|
||||
bool *aborted = p1;
|
||||
|
@ -62,7 +62,7 @@ void malloc_thread(void *p1, void *p2, void *p3)
|
|||
* This test calls the malloc() and free() functions from multiple threads to
|
||||
* verify that no corruption occurs in the newlib memory heap.
|
||||
*/
|
||||
void test_malloc_thread_safety(void)
|
||||
static void test_malloc_thread_safety(void)
|
||||
{
|
||||
int i;
|
||||
k_tid_t tid[THREAD_COUNT];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue