mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
fix compile erorr
chip/stm32_gpio.c:44:11: note: '#pragma message: CONFIG_STM32_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py' 44 | # pragma message "CONFIG_STM32_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py" | ^~~~~~~ CC: pthread/pthread_mutexconsistent.c In file included from chip/stm32_flash.c:40: chip/stm32f20xxf40xx_flash.c:53:4: warning: #warning "Default Flash Configuration Used - See Override Flash Size Designator" [-Wcpp] 53 | # warning "Default Flash Configuration Used - See Override Flash Size Designator" | ^~~~~~~ board/stm32_ethernet.c:84:19: warning: 'g_phy_lock' defined but not used [-Wunused-variable] 84 | static spinlock_t g_phy_lock = SP_UNLOCKED; | ^~~~~~~~~~ LD: nuttx Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
2b762267f3
commit
48c439190d
11 changed files with 20 additions and 4 deletions
|
@ -81,9 +81,8 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static spinlock_t g_ethmac_lock = SP_UNLOCKED;
|
|
||||||
|
|
||||||
#ifdef HAVE_NETMONITOR
|
#ifdef HAVE_NETMONITOR
|
||||||
|
static spinlock_t g_ethmac_lock = SP_UNLOCKED;
|
||||||
static xcpt_t g_ethmac_handler;
|
static xcpt_t g_ethmac_handler;
|
||||||
static void *g_ethmac_arg;
|
static void *g_ethmac_arg;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -76,7 +76,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef GPIO_ENET_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -79,7 +79,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -77,7 +77,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -77,7 +77,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -77,7 +77,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -86,7 +86,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SAMA5_PIOE_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -86,7 +86,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SAMA5_PIOE_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -82,7 +82,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SAMV7_GPIOA_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -82,7 +82,9 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SAMV7_GPIOA_IRQ
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
|
|
@ -81,9 +81,8 @@
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
|
||||||
|
|
||||||
#ifdef HAVE_NETMONITOR
|
#ifdef HAVE_NETMONITOR
|
||||||
|
static spinlock_t g_phy_lock = SP_UNLOCKED;
|
||||||
static xcpt_t g_ethmac_handler;
|
static xcpt_t g_ethmac_handler;
|
||||||
static void *g_ethmac_arg;
|
static void *g_ethmac_arg;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue