-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Randy.Dunlap wrote:
| Fix gcc printk arg type and other function parameter warnings:
|
| drivers/usb/misc/sisusbvga/sisusb.c: In function `sisusb_send_packet':
| drivers/usb/misc/sisusbvga/sisusb.c:583: warning: passing arg 7 of
`sisusb_send_bulk_msg' from incompatible pointer type
| drivers/usb/misc/sisusbvga/sisusb.c:591: warning: passing arg 6 of
`sisusb_recv_bulk_msg' from incompatible pointer type
| drivers/usb/misc/sisusbvga/sisusb.c: In function
`sisusb_send_bridge_packet':
| drivers/usb/misc/sisusbvga/sisusb.c:620: warning: passing arg 7 of
`sisusb_send_bulk_msg' from incompatible pointer type
| drivers/usb/misc/sisusbvga/sisusb.c:628: warning: passing arg 6 of
`sisusb_recv_bulk_msg' from incompatible pointer type
| drivers/usb/misc/sisusbvga/sisusb.c: In function `sisusb_write_mem_bulk':
| drivers/usb/misc/sisusbvga/sisusb.c:989: warning: int format,
different type arg (arg 3)
| drivers/usb/misc/sisusbvga/sisusb.c:989: warning: int format,
different type arg (arg 3)
| drivers/usb/misc/sisusbvga/sisusb.c: In function `sisusb_clear_vram':
| drivers/usb/misc/sisusbvga/sisusb.c:1407: warning: passing arg 7 of
`sisusb_write_mem_bulk' from incompatible pointer type
|
| Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>
Signed-off-by: Thomas Winischhofer <[EMAIL PROTECTED]>
|
| diffstat:=
| drivers/usb/misc/sisusbvga/sisusb.c | 9 +++++----
| 1 files changed, 5 insertions(+), 4 deletions(-)
|
| diff -Naurp ./drivers/usb/misc/sisusbvga/sisusb.c~sisusb_printk
./drivers/usb/misc/sisusbvga/sisusb.c
| --- ./drivers/usb/misc/sisusbvga/sisusb.c~sisusb_printk 2005-03-14
08:41:26.000000000 -0800
| +++ ./drivers/usb/misc/sisusbvga/sisusb.c 2005-03-14
11:57:23.000000000 -0800
| @@ -564,7 +564,7 @@ static int sisusb_send_packet(struct sis
| struct sisusb_packet *packet)
| {
| int ret;
| - int bytes_transferred = 0;
| + ssize_t bytes_transferred = 0;
| __le32 tmp;
|
| if (len == 6)
| @@ -601,7 +601,7 @@ static int sisusb_send_bridge_packet(str
| unsigned int tflags)
| {
| int ret;
| - int bytes_transferred = 0;
| + ssize_t bytes_transferred = 0;
| __le32 tmp;
|
| if (len == 6)
| @@ -983,7 +983,7 @@ static int sisusb_write_mem_bulk(struct
| msgcount++;
| if (msgcount < 500)
| printk(KERN_ERR
| - "sisusbvga[%d]: Wrote %d of "
| + "sisusbvga[%d]: Wrote %Zd of "
| "%d bytes, error %d\n",
| sisusb->minor, *bytes_written,
| length, ret);
| @@ -1381,7 +1381,8 @@ sisusb_read_pci_config(struct sisusb_usb
| static int
| sisusb_clear_vram(struct sisusb_usb_data *sisusb, u32 address, int
length)
| {
| - int ret, i, j;
| + int ret, i;
| + ssize_t j;
|
| if (address < sisusb->vrambase)
| return 1;
|
|
| ---
|
- --
Thomas Winischhofer
Vienna/Austria
thomas AT winischhofer DOT net http://www.winischhofer.net/
twini AT xfree86 DOT org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCNjYNzydIRAktyUcRAvdmAKCyMFxlEMDqOs09vx4a1cIIRAwXDACfeqAK
8+KlGlSDeqCPQIkAGk0W2tI=
=AmAv
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel