* [PATCH 2.6.2-rc1-mm2] drivers/net/tulip/tulip_core.c
@ 2004-01-24 8:02 Bryan Whitehead
2004-01-24 21:17 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Bryan Whitehead @ 2004-01-24 8:02 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm, jgarzik, tulip-users
This fixes a warning if CONFIG_NET_POLL_CONTROLLER is NOT set.
--- drivers/net/tulip/tulip_core.c.orig 2004-01-23 23:53:17.484261904 -0800
+++ drivers/net/tulip/tulip_core.c 2004-01-23 23:53:53.675759960 -0800
@@ -253,7 +253,9 @@
static struct net_device_stats *tulip_get_stats(struct net_device *dev);
static int private_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
static void set_rx_mode(struct net_device *dev);
+#ifdef CONFIG_NET_POLL_CONTROLLER
static void poll_tulip(struct net_device *dev);
+#endif
static void tulip_set_power_state (struct tulip_private *tp,
--
Bryan Whitehead
driver@megahappy.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.2-rc1-mm2] drivers/net/tulip/tulip_core.c
2004-01-24 8:02 [PATCH 2.6.2-rc1-mm2] drivers/net/tulip/tulip_core.c Bryan Whitehead
@ 2004-01-24 21:17 ` Jeff Garzik
2004-01-25 0:48 ` Bryan Whitehead
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2004-01-24 21:17 UTC (permalink / raw)
To: Bryan Whitehead; +Cc: linux-kernel, akpm, tulip-users
Bryan Whitehead wrote:
> This fixes a warning if CONFIG_NET_POLL_CONTROLLER is NOT set.
>
> --- drivers/net/tulip/tulip_core.c.orig 2004-01-23 23:53:17.484261904 -0800
> +++ drivers/net/tulip/tulip_core.c 2004-01-23 23:53:53.675759960 -0800
> @@ -253,7 +253,9 @@
> static struct net_device_stats *tulip_get_stats(struct net_device *dev);
> static int private_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
> static void set_rx_mode(struct net_device *dev);
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> static void poll_tulip(struct net_device *dev);
> +#endif
Hum... doesn't apply here, and also it breaks my automated
"patch -sp1 < patch" script :/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.2-rc1-mm2] drivers/net/tulip/tulip_core.c
2004-01-24 21:17 ` Jeff Garzik
@ 2004-01-25 0:48 ` Bryan Whitehead
0 siblings, 0 replies; 3+ messages in thread
From: Bryan Whitehead @ 2004-01-25 0:48 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel, akpm, tulip-users
You needed -p0 or I'm still on crack and don't know how to diff... Either
way let me know...
This should work for patch -sp1:
--- linux-2.6.2-rc1-mm2/drivers/net/tulip/tulip_core.c.orig 2004-01-24
16:41:06.799528688 -0800
+++ linux-2.6.2-rc1-mm2/drivers/net/tulip/tulip_core.c 2004-01-24
16:40:14.521476160 -0800
@@ -246,21 +246,23 @@
static void tulip_tx_timeout(struct net_device *dev);
static void tulip_init_ring(struct net_device *dev);
static int tulip_start_xmit(struct sk_buff *skb, struct net_device *dev);
static int tulip_open(struct net_device *dev);
static int tulip_close(struct net_device *dev);
static void tulip_up(struct net_device *dev);
static void tulip_down(struct net_device *dev);
static struct net_device_stats *tulip_get_stats(struct net_device *dev);
static int private_ioctl(struct net_device *dev, struct ifreq *rq, int
cmd);
static void set_rx_mode(struct net_device *dev);
+#ifdef CONFIG_NET_POLL_CONTROLLER
static void poll_tulip(struct net_device *dev);
+#endif
static void tulip_set_power_state (struct tulip_private *tp,
int sleep, int snooze)
{
if (tp->flags & HAS_ACPI) {
u32 tmp, newtmp;
pci_read_config_dword (tp->pdev, CFDD, &tmp);
newtmp = tmp & ~(CFDD_Sleep | CFDD_Snooze);
if (sleep)
On Sat, 24 Jan 2004, Jeff Garzik wrote:
> Bryan Whitehead wrote:
> > This fixes a warning if CONFIG_NET_POLL_CONTROLLER is NOT set.
> >
> > --- drivers/net/tulip/tulip_core.c.orig 2004-01-23 23:53:17.484261904 -0800
> > +++ drivers/net/tulip/tulip_core.c 2004-01-23 23:53:53.675759960 -0800
> > @@ -253,7 +253,9 @@
> > static struct net_device_stats *tulip_get_stats(struct net_device *dev);
> > static int private_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
> > static void set_rx_mode(struct net_device *dev);
> > +#ifdef CONFIG_NET_POLL_CONTROLLER
> > static void poll_tulip(struct net_device *dev);
> > +#endif
>
>
> Hum... doesn't apply here, and also it breaks my automated
> "patch -sp1 < patch" script :/
>
>
--
Bryan Whitehead
Email:driver@megahappy.net
WorkE:driver@jpl.nasa.gov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-25 0:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-24 8:02 [PATCH 2.6.2-rc1-mm2] drivers/net/tulip/tulip_core.c Bryan Whitehead
2004-01-24 21:17 ` Jeff Garzik
2004-01-25 0:48 ` Bryan Whitehead
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox