Re: 2.4.23-pre8: usbnet.c doesn't compile with gcc 2.95

From: Greg KH
Date: Thu Oct 23 2003 - 17:06:34 EST


On Thu, Oct 23, 2003 at 09:47:49PM +0200, Adrian Bunk wrote:
> I'm getting the following compile error in 2.4.23-pre8 with gcc 2.95:

This can be fixed with this patch. I'll send it to Marcelo in the next
batch of USB fixes.

thanks,

greg k-h


# USB: fix build bug with usbnet and older versions of gcc.

diff -Nru a/drivers/usb/usbnet.c b/drivers/usb/usbnet.c
--- a/drivers/usb/usbnet.c Thu Oct 23 15:02:44 2003
+++ b/drivers/usb/usbnet.c Thu Oct 23 15:02:44 2003
@@ -381,14 +381,14 @@

#ifdef DEBUG
#define devdbg(usbnet, fmt, arg...) \
- printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net.name, ## arg)
+ printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net.name , ## arg)
#else
#define devdbg(usbnet, fmt, arg...) do {} while(0)
#endif

#define devinfo(usbnet, fmt, arg...) \
do { if ((usbnet)->msg_level >= 1) \
- printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net.name, ## arg); \
+ printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net.name , ## arg); \
} while (0)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/