From 5de8a7874621bd7bd2d8d065a893594af3ae6cf7 Mon Sep 17 00:00:00 2001 From: Ahreum Jeong Date: Fri, 1 Sep 2017 13:55:12 +0900 Subject: [PATCH] Fix build warnings in logm - Add missing include header . logm.c : sched.h for sched_lock/unlock, tinyara/arch.h for up_interrupt_context . logm_tashcmds.c : string.h for strcmp - Delete logm_tash definition from logm.h because it is used in a file only --- os/logm/logm.c | 6 +++++- os/logm/logm.h | 1 - os/logm/logm_tashcmds.c | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/os/logm/logm.c b/os/logm/logm.c index 2700487..2522088 100644 --- a/os/logm/logm.c +++ b/os/logm/logm.c @@ -16,11 +16,15 @@ * ****************************************************************************/ +#include #include #include #include +#ifdef CONFIG_ARCH_LOWPUTC +#include +#endif #include -#include +#include #include #include #ifdef CONFIG_LOGM_TIMESTAMP diff --git a/os/logm/logm.h b/os/logm/logm.h index f36711d..8085c3a 100644 --- a/os/logm/logm.h +++ b/os/logm/logm.h @@ -80,7 +80,6 @@ EXTERN volatile int logm_print_interval; ************************************************************************************/ int logm_task(int argc, char *argv[]); void logm_register_tashcmds(void); -static int logm_tash(int argc, char **args); #undef EXTERN #if defined(__cplusplus) diff --git a/os/logm/logm_tashcmds.c b/os/logm/logm_tashcmds.c index 521348e..1e64fcd 100644 --- a/os/logm/logm_tashcmds.c +++ b/os/logm/logm_tashcmds.c @@ -18,10 +18,13 @@ #include #include #include +#include #include #include #include "logm.h" +static int logm_tash(int argc, char **args); + const static tash_cmdlist_t logm_tashmds[] = { {"logm", logm_tash, TASH_EXECMD_SYNC}, {NULL, NULL, 0} -- 2.7.4