This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch pr402 in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 693e16c3ce710c7a02fa73a5d01a2ed17c862e8b Author: Joshua Lange <[email protected]> AuthorDate: Thu Jan 23 13:47:13 2020 -0600 STM32H7: stm32_ethinitialize should not be static if CONFIG_NETDEV_LATEINIT is defined. --- arch/arm/src/stm32h7/stm32_ethernet.c | 8 ++++---- arch/arm/src/stm32h7/stm32_ethernet.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/stm32h7/stm32_ethernet.c b/arch/arm/src/stm32h7/stm32_ethernet.c index d9903cf..e2002f8 100644 --- a/arch/arm/src/stm32h7/stm32_ethernet.c +++ b/arch/arm/src/stm32h7/stm32_ethernet.c @@ -4328,11 +4328,11 @@ static int stm32_ethconfig(struct stm32_ethmac_s *priv) * ****************************************************************************/ -#if STM32H7_NETHERNET == 1 || defined(CONFIG_NETDEV_LATEINIT) -static inline -#endif - +#if STM32H7_NETHERNET > 1 || defined(CONFIG_NETDEV_LATEINIT) int stm32_ethinitialize(int intf) +#else +static inline int stm32_ethinitialize(int intf) +#endif { struct stm32_ethmac_s *priv; diff --git a/arch/arm/src/stm32h7/stm32_ethernet.h b/arch/arm/src/stm32h7/stm32_ethernet.h index fdb1ad5..92da890 100644 --- a/arch/arm/src/stm32h7/stm32_ethernet.h +++ b/arch/arm/src/stm32h7/stm32_ethernet.h @@ -80,7 +80,7 @@ extern "C" * ****************************************************************************/ -#if STM32H7_NETHERNET > 1 +#if STM32H7_NETHERNET > 1 || defined(CONFIG_NETDEV_LATEINIT) int stm32_ethinitialize(int intf); #endif
