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:
hujun5 2024-12-19 21:08:35 +08:00 committed by Xiang Xiao
parent 2b762267f3
commit 48c439190d
11 changed files with 20 additions and 4 deletions

View file

@ -81,9 +81,8 @@
* Private Data
****************************************************************************/
static spinlock_t g_ethmac_lock = SP_UNLOCKED;
#ifdef HAVE_NETMONITOR
static spinlock_t g_ethmac_lock = SP_UNLOCKED;
static xcpt_t g_ethmac_handler;
static void *g_ethmac_arg;
#endif

View file

@ -76,7 +76,9 @@
* Private Data
****************************************************************************/
#ifdef GPIO_ENET_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -79,7 +79,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -77,7 +77,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -77,7 +77,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -77,7 +77,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -86,7 +86,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_SAMA5_PIOE_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -86,7 +86,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_SAMA5_PIOE_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -82,7 +82,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_SAMV7_GPIOA_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -82,7 +82,9 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_SAMV7_GPIOA_IRQ
static spinlock_t g_phy_lock = SP_UNLOCKED;
#endif
/****************************************************************************
* Private Functions

View file

@ -81,9 +81,8 @@
* Private Data
****************************************************************************/
static spinlock_t g_phy_lock = SP_UNLOCKED;
#ifdef HAVE_NETMONITOR
static spinlock_t g_phy_lock = SP_UNLOCKED;
static xcpt_t g_ethmac_handler;
static void *g_ethmac_arg;
#endif