From 5ebce26cc7c4f1ff03a45223493bb0b77b8c41ff Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 17 Feb 2020 14:18:22 +0900 Subject: [PATCH] Fix "unused" warnings with CONFIG_TIVA_WITH_QEMU=y --- arch/arm/src/tiva/lm/lm3s_ethernet.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/src/tiva/lm/lm3s_ethernet.c b/arch/arm/src/tiva/lm/lm3s_ethernet.c index a8ddf70f48..150897aa89 100644 --- a/arch/arm/src/tiva/lm/lm3s_ethernet.c +++ b/arch/arm/src/tiva/lm/lm3s_ethernet.c @@ -240,7 +240,9 @@ static void tiva_ethreset(struct tiva_driver_s *priv); #if 0 /* Not used */ static void tiva_phywrite(struct tiva_driver_s *priv, int regaddr, uint16_t value); #endif +#ifndef CONFIG_TIVA_WITH_QEMU static uint16_t tiva_phyread(struct tiva_driver_s *priv, int regaddr); +#endif /* Common TX logic */ @@ -466,6 +468,7 @@ static void tiva_phywrite(struct tiva_driver_s *priv, int regaddr, uint16_t valu * ****************************************************************************/ +#ifndef CONFIG_TIVA_WITH_QEMU static uint16_t tiva_phyread(struct tiva_driver_s *priv, int regaddr) { /* Wait for any MII transactions in progress to complete */ @@ -486,6 +489,7 @@ static uint16_t tiva_phyread(struct tiva_driver_s *priv, int regaddr) return (uint16_t)(tiva_ethin(priv, TIVA_MAC_MRXD_OFFSET) & MAC_MTRD_MASK); } +#endif /**************************************************************************** * Function: tiva_transmit @@ -1279,7 +1283,9 @@ static int tiva_ifup(struct net_driver_s *dev) irqstate_t flags; uint32_t regval; uint32_t div; +#ifndef CONFIG_TIVA_WITH_QEMU uint16_t phyreg; +#endif ninfo("Bringing up: %d.%d.%d.%d\n", dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,