Fixes warnings from header files:

include/nuttx/clock.h:  Fix uptime wrong if DEBUG_FEATURES and SCHED_TICKLESS enabled
include/nuttx/arch.h: fix CONFIG_ARCH_INTERRUPTSTACK not defined  warning
include/nuttx/audio/audio_i2s.h:  Fix warning: struct i2s_dev_s declared inside parameter list
This commit is contained in:
Xiang Xiao
2018-11-09 09:10:28 -06:00
committed by Gregory Nutt
parent c68f44dc44
commit a82f073892
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -2183,7 +2183,7 @@ size_t up_check_tcbstack(FAR struct tcb_s *tcb);
ssize_t up_check_tcbstack_remain(FAR struct tcb_s *tcb);
size_t up_check_stack(void);
ssize_t up_check_stack_remain(void);
#if CONFIG_ARCH_INTERRUPTSTACK > 3
#if defined(CONFIG_ARCH_INTERRUPTSTACK) && CONFIG_ARCH_INTERRUPTSTACK > 3
size_t up_check_intstack(void);
size_t up_check_intstack_remain(void);
#endif
+5
View File
@@ -41,6 +41,9 @@
****************************************************************************/
#include <nuttx/config.h>
#ifdef CONFIG_AUDIO_I2S
#include <nuttx/audio/audio.h>
#include <nuttx/audio/i2s.h>
@@ -51,4 +54,6 @@
FAR struct audio_lowerhalf_s *audio_i2s_initialize(FAR struct i2s_dev_s *i2s,
bool playback);
#endif /* CONFIG_AUDIO_I2S */
#endif
+1 -1
View File
@@ -202,7 +202,7 @@
#define TICK2SEC(tick) (((tick)+(TICK_PER_SEC/2))/TICK_PER_SEC) /* Rounds */
#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_SYSTEM_TIME64) && \
defined(CONFIG_CLOCK_MONOTONIC)
defined(CONFIG_CLOCK_MONOTONIC) && !defined(CONFIG_SCHED_TICKLESS)
/* Initial system timer ticks value close to maximum 32-bit value, to test
* 64-bit system-timer after going over 32-bit value. This is to make errors
* of casting 64-bit system-timer to 32-bit variables more visible.