pcnet32: remove compile warnings in non-napi mode
Subsystems (2)
PATCH 1/1 pcnet32: remove compile warnings in non-napi mode
Remove compile warning when in non-napi mode.
Signed-off-by Don Fry <[email protected]>
---
drivers/net/pcnet32.c renamed from drivers/net/napi.pcnet32.c +4 -0
@@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwistatic void pcnet32_netif_stop (struct net_device *dev) { +#ifdef CONFIG_PCNET32_NAPI struct pcnet32_private *lp =netdev_priv (dev); +#endif dev->trans_start = jiffies;#ifdef CONFIG_PCNET32_NAPI napi_disable (&lp->napi);
@@ -452,7 +454,9 @@ static void pcnet32_netif_stop(struct nestatic void pcnet32_netif_start (struct net_device *dev) { +#ifdef CONFIG_PCNET32_NAPI struct pcnet32_private *lp =netdev_priv (dev); +#endif netif_wake_queue (dev);#ifdef CONFIG_PCNET32_NAPI napi_enable (&lp->napi);
Jeff Garzik
AppliedQuoted 7 lines · Don Fry
Remove compile warning when in non-napi mode.
Signed-off-by Don Fry <[email protected]>---
drivers/net/pcnet32.c static struct pcnet32_access pcnet32_dwi · line 450
Quoted 9 lines
drivers/net/pcnet32.c renamed from drivers/net/napi.pcnet32.c +2
-0@@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwistatic void pcnet32_netif_stop (struct net_device *dev) { +#ifdef CONFIG_PCNET32_NAPI struct pcnet32_private *lp =netdev_priv (dev); +#endif dev->trans_start = jiffies;#ifdef CONFIG_PCNET32_NAPI napi_disable (&lp->napi);
applied