Re: 2.6.19-rc2-mm1

From: Andrew Morton
Date: Tue Oct 17 2006 - 03:37:57 EST


On Tue, 17 Oct 2006 00:03:56 -0700
"Miles Lane" <miles.lane@xxxxxxxxx> wrote:

> CC [M] drivers/usb/gadget/net2280.o
> drivers/usb/gadget/net2280.c: In function 'usb_gadget_register_driver':
> drivers/usb/gadget/net2280.c:2047: error: expected expression before 'do'
> drivers/usb/gadget/net2280.c:2049: error: expected expression before 'do'
> drivers/usb/gadget/net2280.c: In function 'net2280_probe':
> drivers/usb/gadget/net2280.c:2989: error: expected expression before 'do'
> drivers/usb/gadget/net2280.c:2972: warning: ignoring return value of

This, I guess:

--- a/drivers/usb/gadget/net2280.c~usb-gadget-net2280-handle-sysfs-errors-fix
+++ a/drivers/usb/gadget/net2280.c
@@ -1774,7 +1774,7 @@ static DEVICE_ATTR (queues, S_IRUGO, sho

#else

-#define device_create_file(a,b) do {} while (0)
+#define device_create_file(a,b) (0)
#define device_remove_file device_create_file

#endif
_

-
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/