* [PATCH] pcnet32: remove compile warnings in non-napi mode
@ 2007-10-17 23:10 Don Fry
2007-10-18 0:22 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Don Fry @ 2007-10-17 23:10 UTC (permalink / raw)
To: jgarzik; +Cc: netdev
Remove compile warning when in non-napi mode.
Signed-off-by: Don Fry <pcnet32@verizon.net>
---
--- linux-2.6.23-git7/drivers/net/napi.pcnet32.c 2007-10-17 15:56:15.000000000 -0700
+++ linux-2.6.23-git7/drivers/net/pcnet32.c 2007-10-17 16:00:44.000000000 -0700
@@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwi
static 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 ne
static 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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pcnet32: remove compile warnings in non-napi mode
2007-10-17 23:10 [PATCH] pcnet32: remove compile warnings in non-napi mode Don Fry
@ 2007-10-18 0:22 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-10-18 0:22 UTC (permalink / raw)
To: Don Fry; +Cc: netdev
Don Fry wrote:
> Remove compile warning when in non-napi mode.
>
> Signed-off-by: Don Fry <pcnet32@verizon.net>
> ---
> --- linux-2.6.23-git7/drivers/net/napi.pcnet32.c 2007-10-17 15:56:15.000000000 -0700
> +++ linux-2.6.23-git7/drivers/net/pcnet32.c 2007-10-17 16:00:44.000000000 -0700
> @@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwi
>
> static 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-18 0:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 23:10 [PATCH] pcnet32: remove compile warnings in non-napi mode Don Fry
2007-10-18 0:22 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).