Fix some warnings found in build testing.

This commit is contained in:
Gregory Nutt
2019-01-27 17:23:01 -06:00
parent 732bef73a7
commit 78c8485b0d
5 changed files with 10 additions and 1 deletions
+2
View File
@@ -3649,6 +3649,7 @@ static uint32_t adc_sqrbits(FAR struct stm32_dev_s *priv, int first, int last,
* Name: adc_offset_set * Name: adc_offset_set
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_STM32_ADC_LL_OPS
#ifdef HAVE_IP_ADC_V2 #ifdef HAVE_IP_ADC_V2
static int adc_offset_set(FAR struct stm32_adc_dev_s *dev, uint8_t ch, static int adc_offset_set(FAR struct stm32_adc_dev_s *dev, uint8_t ch,
uint8_t i, uint16_t offset) uint8_t i, uint16_t offset)
@@ -3705,6 +3706,7 @@ errout:
return ret; return ret;
} }
#endif #endif
#endif /* CONFIG_STM32_ADC_LL_OPS */
/**************************************************************************** /****************************************************************************
* Name: adc_set_ch * Name: adc_set_ch
-1
View File
@@ -48,7 +48,6 @@
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/kmalloc.h> #include <nuttx/kmalloc.h>
#include <nuttx/mm/mm.h>
#include <nuttx/mm/shm.h> #include <nuttx/mm/shm.h>
#include <nuttx/binfmt/binfmt.h> #include <nuttx/binfmt/binfmt.h>
+4
View File
@@ -49,7 +49,9 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/addrenv.h> #include <nuttx/addrenv.h>
#include <nuttx/mm/mm.h>
#include <nuttx/binfmt/elf.h> #include <nuttx/binfmt/elf.h>
#include "libelf.h" #include "libelf.h"
@@ -302,10 +304,12 @@ int elf_load(FAR struct elf_loadinfo_s *loadinfo)
goto errout_with_buffers; goto errout_with_buffers;
} }
#ifdef CONFIG_BUILD_KERNEL
/* Initialize the user heap */ /* Initialize the user heap */
umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE, umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE,
up_addrenv_heapsize(&loadinfo->addrenv)); up_addrenv_heapsize(&loadinfo->addrenv));
#endif
#endif #endif
/* Load ELF section data into memory */ /* Load ELF section data into memory */
+2
View File
@@ -216,6 +216,7 @@ void note_spincommon(FAR struct tcb_s *tcb, FAR volatile spinlock_t *spinlock,
* *
****************************************************************************/ ****************************************************************************/
#if defined(CONFIG_SCHED_NOTE_GET) || defined(CONFIG_DEBUG_ASSERTIONS)
static unsigned int note_length(void) static unsigned int note_length(void)
{ {
unsigned int head = g_note_info.ni_head; unsigned int head = g_note_info.ni_head;
@@ -228,6 +229,7 @@ static unsigned int note_length(void)
return head - tail; return head - tail;
} }
#endif
/**************************************************************************** /****************************************************************************
* Name: note_remove * Name: note_remove
+2
View File
@@ -47,6 +47,8 @@
#include <debug.h> #include <debug.h>
#include <signal.h> #include <signal.h>
#include <nuttx/signal.h>
#include "sched/sched.h" #include "sched/sched.h"
#include "signal/signal.h" #include "signal/signal.h"