ChangeSet 1.2000.12.12, 2004/10/22 11:07:37-07:00, [EMAIL PROTECTED] [PATCH] USB: fix usb/serial/console.c compile error
The following compile error seems to come from Linus' tree: <-- snip --> ... CC drivers/usb/serial/bus.o CC drivers/usb/serial/console.o drivers/usb/serial/console.c: In function `usb_console_write': drivers/usb/serial/console.c:221: warning: passing arg 3 of pointer to function makes integer from pointer without a cast drivers/usb/serial/console.c:221: error: too many arguments to function drivers/usb/serial/console.c:223: warning: passing arg 3 of `usb_serial_generic_write' makes integer from pointer without a cast drivers/usb/serial/console.c:223: error: too many arguments to function `usb_serial_generic_write' make[3]: *** [drivers/usb/serial/console.o] Error 1 <-- snip --> This was caused by the changed "write" in usb_serial_device_type. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> drivers/usb/serial/console.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c --- a/drivers/usb/serial/console.c 2004-10-22 16:11:57 -07:00 +++ b/drivers/usb/serial/console.c 2004-10-22 16:11:57 -07:00 @@ -218,9 +218,9 @@ /* pass on to the driver specific version of this function if it is available */ if (serial->type->write) - retval = serial->type->write(port, 0, buf, count); + retval = serial->type->write(port, buf, count); else - retval = usb_serial_generic_write(port, 0, buf, count); + retval = usb_serial_generic_write(port, buf, count); exit: dbg("%s - return value (if we had one): %d", __FUNCTION__, retval); ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel