]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix netpoll warning in tulip
authorMatt Mackall <mpm@selenic.com>
Tue, 16 Mar 2004 10:36:03 +0000 (05:36 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 16 Mar 2004 10:36:03 +0000 (05:36 -0500)
On Tue, Mar 16, 2004 at 12:36:02PM +0200, Meelis Roos wrote:
> FYI: with netpoll configured out, I get
>
>   CC [M]  drivers/net/tulip/tulip_core.o
> drivers/net/tulip/tulip_core.c:256: warning: `poll_tulip' declared `static' but never defined

drivers/net/tulip/tulip_core.c

index 9599040a32f6fbf3898ea226b130e53486276a48..9fbc0a2d3175c5c72729adf64dabe26fdd689a50 100644 (file)
@@ -253,8 +253,9 @@ 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)