Re: 2.6.19-rc2-mm1

Andrew Morton
2006-10-17T07:37:00Z

On Tue, 17 Oct 2006 00:03:56 -0700
"Miles Lane" <miles.lane@gmail.com> 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
_