Hi,

There is still the odd person who reports a `bug' when they see these
warnings on ix86 builds:

8390.c:179: warning: unused variable `ei_local'
8390.c:978: warning: unused variable `ei_local'
8390.c:1092: warning: unused variable `ei_local'

The following small diff (2.2.x) makes use of gcc __attribute((unused))
as per v2.3.x kernels.  Feel free to leave until 2.2.16pre, or /dev/null
it entirely as it isn't really important.

Thanks,
Paul.

--- linux/drivers/net/8390.c~   Sat Oct 23 03:54:09 1999
+++ linux/drivers/net/8390.c    Fri Mar 10 22:42:50 2000
@@ -176,7 +176,7 @@
 /* Opposite of above. Only used when "ifconfig <devname> down" is done. */
 int ei_close(struct device *dev)
 {
-       struct ei_device *ei_local = (struct ei_device *) dev->priv;
+       struct ei_device *ei_local __attribute((unused)) = (struct ei_device *) 
+dev->priv;
        unsigned long flags;
 
        /*
@@ -975,7 +975,7 @@
 static void set_multicast_list(struct device *dev)
 {
        unsigned long flags;
-       struct ei_device *ei_local = (struct ei_device*)dev->priv;
+       struct ei_device *ei_local __attribute((unused)) = (struct 
+ei_device*)dev->priv;
        
        spin_lock_irqsave(&ei_local->page_lock, flags);
        do_set_multicast_list(dev);
@@ -1089,7 +1089,7 @@
                                                                int start_page)
 {
        long e8390_base = dev->base_addr;
-       struct ei_device *ei_local = (struct ei_device *) dev->priv;
+       struct ei_device *ei_local __attribute((unused)) = (struct ei_device *) 
+dev->priv;
    
        outb_p(E8390_NODMA+E8390_PAGE0, e8390_base+E8390_CMD);
     


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to