Skip to content

Commit 48c4391

Browse files
hujun260xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 2b76226 commit 48c4391

File tree

11 files changed

+20
-4
lines changed

11 files changed

+20
-4
lines changed

boards/arm/at32/at32f437-mini/src/at32_ethernet.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@
8181
* Private Data
8282
****************************************************************************/
8383

84-
static spinlock_t g_ethmac_lock = SP_UNLOCKED;
85-
8684
#ifdef HAVE_NETMONITOR
85+
static spinlock_t g_ethmac_lock = SP_UNLOCKED;
8786
static xcpt_t g_ethmac_handler;
8887
static void *g_ethmac_arg;
8988
#endif

boards/arm/imxrt/imxrt1020-evk/src/imxrt_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@
7676
* Private Data
7777
****************************************************************************/
7878

79+
#ifdef GPIO_ENET_IRQ
7980
static spinlock_t g_phy_lock = SP_UNLOCKED;
81+
#endif
8082

8183
/****************************************************************************
8284
* Private Functions

boards/arm/imxrt/imxrt1050-evk/src/imxrt_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
* Private Data
8080
****************************************************************************/
8181

82+
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
8283
static spinlock_t g_phy_lock = SP_UNLOCKED;
84+
#endif
8385

8486
/****************************************************************************
8587
* Private Functions

boards/arm/imxrt/imxrt1060-evk/src/imxrt_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
* Private Data
7878
****************************************************************************/
7979

80+
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
8081
static spinlock_t g_phy_lock = SP_UNLOCKED;
82+
#endif
8183

8284
/****************************************************************************
8385
* Private Functions

boards/arm/imxrt/imxrt1064-evk/src/imxrt_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
* Private Data
7878
****************************************************************************/
7979

80+
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
8081
static spinlock_t g_phy_lock = SP_UNLOCKED;
82+
#endif
8183

8284
/****************************************************************************
8385
* Private Functions

boards/arm/imxrt/teensy-4.x/src/imxrt_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
* Private Data
7878
****************************************************************************/
7979

80+
#ifdef CONFIG_IMXRT_GPIO1_0_15_IRQ
8081
static spinlock_t g_phy_lock = SP_UNLOCKED;
82+
#endif
8183

8284
/****************************************************************************
8385
* Private Functions

boards/arm/sama5/sama5d2-xult/src/sam_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
* Private Data
8787
****************************************************************************/
8888

89+
#ifdef CONFIG_SAMA5_PIOE_IRQ
8990
static spinlock_t g_phy_lock = SP_UNLOCKED;
91+
#endif
9092

9193
/****************************************************************************
9294
* Private Functions

boards/arm/sama5/sama5d3x-ek/src/sam_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
* Private Data
8787
****************************************************************************/
8888

89+
#ifdef CONFIG_SAMA5_PIOE_IRQ
8990
static spinlock_t g_phy_lock = SP_UNLOCKED;
91+
#endif
9092

9193
/****************************************************************************
9294
* Private Functions

boards/arm/samv7/same70-xplained/src/sam_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
* Private Data
8383
****************************************************************************/
8484

85+
#ifdef CONFIG_SAMV7_GPIOA_IRQ
8586
static spinlock_t g_phy_lock = SP_UNLOCKED;
87+
#endif
8688

8789
/****************************************************************************
8890
* Private Functions

boards/arm/samv7/samv71-xult/src/sam_ethernet.c

+2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
* Private Data
8383
****************************************************************************/
8484

85+
#ifdef CONFIG_SAMV7_GPIOA_IRQ
8586
static spinlock_t g_phy_lock = SP_UNLOCKED;
87+
#endif
8688

8789
/****************************************************************************
8890
* Private Functions

boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@
8181
* Private Data
8282
****************************************************************************/
8383

84-
static spinlock_t g_phy_lock = SP_UNLOCKED;
85-
8684
#ifdef HAVE_NETMONITOR
85+
static spinlock_t g_phy_lock = SP_UNLOCKED;
8786
static xcpt_t g_ethmac_handler;
8887
static void *g_ethmac_arg;
8988
#endif

0 commit comments

Comments
 (0)