summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorzhujiale <[email protected]>2024-09-13 15:41:43 +0800
committerRbb666 <[email protected]>2024-09-24 09:56:30 +0800
commitd8956e415e246423abd71917aea8ecb4f8fd2a47 (patch)
tree7a0239f7a33610775ec304994ff8b46720dc7830 /components
parentaafc0ae0f815f0865fe35881306389330ae691a9 (diff)
smp
Diffstat (limited to 'components')
-rw-r--r--components/drivers/smp/smp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/drivers/smp/smp.c b/components/drivers/smp/smp.c
index 3b6d9694ea..765d143061 100644
--- a/components/drivers/smp/smp.c
+++ b/components/drivers/smp/smp.c
@@ -14,9 +14,10 @@
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
-struct rt_smp_call rt_smp_work[RT_CPUS_NR];
-rt_atomic_t rt_smp_wait;
-rt_err_t smp_call_handler(struct rt_smp_event *event)
+static struct rt_smp_call rt_smp_work[RT_CPUS_NR];
+static rt_atomic_t rt_smp_wait;
+
+static rt_err_t smp_call_handler(struct rt_smp_event *event)
{
switch (event->event_id)
{