From 1d9f0450684ae1cd0fdb5514c59971e0d8ac1554 Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Tue, 6 Aug 2024 15:13:15 +0800 Subject: [PATCH] testing/memstress:Fix FAR prefix Summary: Add FAR before some pointer declarations Signed-off-by: chenrun1 --- testing/memstress/memorystress_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/memstress/memorystress_main.c b/testing/memstress/memorystress_main.c index 8e2cd01e3..dbf77222d 100644 --- a/testing/memstress/memorystress_main.c +++ b/testing/memstress/memorystress_main.c @@ -97,10 +97,10 @@ struct memorystress_node_s struct memorystress_context_s { - struct memorystress_node_s *node_array; - struct memorystress_config_s *config; + FAR struct memorystress_node_s *node_array; + FAR struct memorystress_config_s *config; + FAR pthread_t *threads; struct memorystress_error_s error; - pthread_t *threads; uint32_t sleep_us; size_t nthreads; bool debug; @@ -476,11 +476,11 @@ static void init(FAR struct memorystress_context_s *context, int argc, * Name: memorystress_thread ****************************************************************************/ -FAR void *memorystress_thread(void *arg) +FAR void *memorystress_thread(FAR void *arg) { FAR struct memorystress_context_s *context; - context = (struct memorystress_context_s *)arg; + context = (FAR struct memorystress_context_s *)arg; while (memorystress_iter(context)) { usleep(context->sleep_us);