From e46af94c22c81b45c9ad63b9082a60275acbf4fe Mon Sep 17 00:00:00 2001 From: wuminjie Date: Mon, 22 Apr 2024 14:43:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuminjie --- samgr/adapter/cmsis/thread_adapter.c | 2 +- samgr_endpoint/source/samgr_mini_ipc_adapter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samgr/adapter/cmsis/thread_adapter.c b/samgr/adapter/cmsis/thread_adapter.c index 0e0708d..6af2bce 100644 --- a/samgr/adapter/cmsis/thread_adapter.c +++ b/samgr/adapter/cmsis/thread_adapter.c @@ -16,7 +16,7 @@ #include "common.h" #include -extern void *osThreadGetArgument(void); +void *osThreadGetArgument(void); MutexId MUTEX_InitValue() { diff --git a/samgr_endpoint/source/samgr_mini_ipc_adapter.c b/samgr_endpoint/source/samgr_mini_ipc_adapter.c index ae5e68c..cc340c3 100644 --- a/samgr_endpoint/source/samgr_mini_ipc_adapter.c +++ b/samgr_endpoint/source/samgr_mini_ipc_adapter.c @@ -31,7 +31,7 @@ int ClientRegisterRemoteEndpoint(SvcIdentity *identity, int token, const char *s identity->cookie = objectStubOne; // token is used by router index, should be itself, and save in SaNode identity->token = token; - extern int AddEndpoint(SvcIdentity identity, const char *service, const char *feature); + int AddEndpoint(SvcIdentity identity, const char *service, const char *feature); return AddEndpoint(*identity, service, feature); } @@ -42,7 +42,7 @@ void Listen(Endpoint *endpoint, int token, const char *service, const char *feat static int Dispatch(uint32_t code, IpcIo *data, IpcIo *reply, MessageOption option) { - extern RemoteRegister g_remoteRegister; + RemoteRegister g_remoteRegister; Endpoint *endpoint = g_remoteRegister.endpoint; int token = GetRemoteToken(data); if (token == EC_INVALID) { -- Gitee From 79147f379b29451644c44bac28ddde59e788837f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F=E6=9D=B0?= Date: Tue, 23 Apr 2024 02:58:12 +0000 Subject: [PATCH 2/3] update samgr/adapter/cmsis/thread_adapter.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴敏杰 --- samgr/adapter/cmsis/thread_adapter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/samgr/adapter/cmsis/thread_adapter.c b/samgr/adapter/cmsis/thread_adapter.c index 6af2bce..ae56168 100644 --- a/samgr/adapter/cmsis/thread_adapter.c +++ b/samgr/adapter/cmsis/thread_adapter.c @@ -16,7 +16,6 @@ #include "common.h" #include -void *osThreadGetArgument(void); MutexId MUTEX_InitValue() { -- Gitee From 41036bb939f7b525fa68fd2160afd6fb7ea67d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F=E6=9D=B0?= Date: Tue, 23 Apr 2024 03:00:01 +0000 Subject: [PATCH 3/3] update samgr_endpoint/source/samgr_mini_ipc_adapter.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴敏杰 --- samgr_endpoint/source/samgr_mini_ipc_adapter.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/samgr_endpoint/source/samgr_mini_ipc_adapter.c b/samgr_endpoint/source/samgr_mini_ipc_adapter.c index cc340c3..57f31b5 100644 --- a/samgr_endpoint/source/samgr_mini_ipc_adapter.c +++ b/samgr_endpoint/source/samgr_mini_ipc_adapter.c @@ -31,7 +31,6 @@ int ClientRegisterRemoteEndpoint(SvcIdentity *identity, int token, const char *s identity->cookie = objectStubOne; // token is used by router index, should be itself, and save in SaNode identity->token = token; - int AddEndpoint(SvcIdentity identity, const char *service, const char *feature); return AddEndpoint(*identity, service, feature); } @@ -42,7 +41,6 @@ void Listen(Endpoint *endpoint, int token, const char *service, const char *feat static int Dispatch(uint32_t code, IpcIo *data, IpcIo *reply, MessageOption option) { - RemoteRegister g_remoteRegister; Endpoint *endpoint = g_remoteRegister.endpoint; int token = GetRemoteToken(data); if (token == EC_INVALID) { -- Gitee