mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Fix some warnings/errors detected by nuttx/tools/testbuilds.sh
This commit is contained in:
@@ -504,9 +504,9 @@ static inline uint32_t efm32_hfclk_config(uint32_t hfclksel, uint32_t hfclkdiv)
|
||||
#ifdef CONFIG_EFM32_LECLOCK
|
||||
uint32_t efm32_coreleclk_config( int frequency )
|
||||
{
|
||||
#ifdef CMU_CTRL_HFLE
|
||||
uint32_t regval;
|
||||
|
||||
#ifdef CMU_CTRL_HFLE
|
||||
/* Check if the core frequency is higher than CMU_MAX_FREQ_HFLE */
|
||||
|
||||
if (frequency > CMU_MAX_FREQ_HFLE)
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#include "chip.h"
|
||||
#include "chip/lpc11_uart.h"
|
||||
#include "lpc11_gpio.h"
|
||||
#include "lpc11_lowgetc.h"
|
||||
#include "lpc11_serial.h"
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -1788,6 +1788,7 @@ static int lpc17_usbinterrupt(int irq, void *context)
|
||||
|
||||
td = (struct lpc17_gtd_s *)(HCCA->donehead & HCCA_DONEHEAD_MASK);
|
||||
HCCA->donehead = 0;
|
||||
next = NULL;
|
||||
|
||||
/* Process each TD in the write done list */
|
||||
|
||||
|
||||
@@ -2106,7 +2106,6 @@ static int lpc31_epsubmit(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *r
|
||||
static int lpc31_epcancel(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *req)
|
||||
{
|
||||
FAR struct lpc31_ep_s *privep = (FAR struct lpc31_ep_s *)ep;
|
||||
FAR struct lpc31_usbdev_s *priv;
|
||||
irqstate_t flags;
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
@@ -2118,7 +2117,6 @@ static int lpc31_epcancel(FAR struct usbdev_ep_s *ep, FAR struct usbdev_req_s *r
|
||||
#endif
|
||||
|
||||
usbtrace(TRACE_EPCANCEL, privep->epphy);
|
||||
priv = privep->dev;
|
||||
|
||||
flags = irqsave();
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <arch/irq.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
@@ -61,7 +60,10 @@
|
||||
# error Unknown UART
|
||||
#endif
|
||||
|
||||
/* The board.h file may redefine pin configurations defined in sam_pinmap.h */
|
||||
|
||||
#include "chip/sam_pinmap.h"
|
||||
#include <arch/board/board.h>
|
||||
|
||||
/**************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
@@ -135,7 +135,7 @@ static void __ramfunc__ sam_pmcwait(uint32_t bit)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_enablemosc(void)
|
||||
static void __ramfunc__ sam_enablemosc(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -190,7 +190,7 @@ static inline void __ramfunc__ sam_enablemosc(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_selectmosc(void)
|
||||
static void __ramfunc__ sam_selectmosc(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -218,7 +218,7 @@ static inline void __ramfunc__ sam_selectmosc(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_pllasetup(void)
|
||||
static void __ramfunc__ sam_pllasetup(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -255,7 +255,7 @@ static inline void __ramfunc__ sam_pllasetup(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_plladivider(void)
|
||||
static void __ramfunc__ sam_plladivider(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -306,7 +306,7 @@ static inline void __ramfunc__ sam_plladivider(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_mckprescaler(void)
|
||||
static void __ramfunc__ sam_mckprescaler(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -333,7 +333,7 @@ static inline void __ramfunc__ sam_mckprescaler(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_mckdivider(void)
|
||||
static void __ramfunc__ sam_mckdivider(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -365,7 +365,7 @@ static inline void __ramfunc__ sam_mckdivider(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef PMC_MCKR_H32MXDIV
|
||||
static inline void __ramfunc__ sam_h32mxdivider(void)
|
||||
static void __ramfunc__ sam_h32mxdivider(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
@@ -397,7 +397,7 @@ static inline void __ramfunc__ sam_h32mxdivider(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(NEED_PLLSETUP)
|
||||
static inline void __ramfunc__ sam_selectplla(void)
|
||||
static void __ramfunc__ sam_selectplla(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
||||
|
||||
@@ -1127,7 +1127,7 @@ errout:
|
||||
regval = can_getreg(priv, STM32_CAN_RF0R_OFFSET);
|
||||
regval |= CAN_RFR_RFOM;
|
||||
can_putreg(priv, STM32_CAN_RF0R_OFFSET, regval);
|
||||
return OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/tiva/chip.h>
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
||||
Reference in New Issue
Block a user