Commit 097abe8e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: parport warnings

drivers/pnp/pnpbios/core.c: In function `pnpbios_probe_system':
drivers/pnp/pnpbios/core.c:438: warning: use of cast expressions as lvalues is deprecated
parent c19da8e8
...@@ -329,7 +329,8 @@ static size_t parport_pc_epp_read_data (struct parport *port, void *buf, ...@@ -329,7 +329,8 @@ static size_t parport_pc_epp_read_data (struct parport *port, void *buf,
left -= 16; left -= 16;
} else { } else {
/* grab single byte from the warp fifo */ /* grab single byte from the warp fifo */
*((char *)buf)++ = inb (EPPDATA (port)); *((char *)buf) = inb (EPPDATA (port));
buf++;
got++; got++;
left--; left--;
} }
...@@ -356,7 +357,8 @@ static size_t parport_pc_epp_read_data (struct parport *port, void *buf, ...@@ -356,7 +357,8 @@ static size_t parport_pc_epp_read_data (struct parport *port, void *buf,
return length; return length;
} }
for (; got < length; got++) { for (; got < length; got++) {
*((char*)buf)++ = inb (EPPDATA(port)); *((char*)buf) = inb (EPPDATA(port));
buf++;
if (inb (STATUS (port)) & 0x01) { if (inb (STATUS (port)) & 0x01) {
/* EPP timeout */ /* EPP timeout */
clear_epp_timeout (port); clear_epp_timeout (port);
...@@ -385,7 +387,8 @@ static size_t parport_pc_epp_write_data (struct parport *port, const void *buf, ...@@ -385,7 +387,8 @@ static size_t parport_pc_epp_write_data (struct parport *port, const void *buf,
return length; return length;
} }
for (; written < length; written++) { for (; written < length; written++) {
outb (*((char*)buf)++, EPPDATA(port)); outb (*((char*)buf), EPPDATA(port));
buf++;
if (inb (STATUS(port)) & 0x01) { if (inb (STATUS(port)) & 0x01) {
clear_epp_timeout (port); clear_epp_timeout (port);
break; break;
...@@ -409,7 +412,8 @@ static size_t parport_pc_epp_read_addr (struct parport *port, void *buf, ...@@ -409,7 +412,8 @@ static size_t parport_pc_epp_read_addr (struct parport *port, void *buf,
return length; return length;
} }
for (; got < length; got++) { for (; got < length; got++) {
*((char*)buf)++ = inb (EPPADDR (port)); *((char*)buf) = inb (EPPADDR (port));
buf++;
if (inb (STATUS (port)) & 0x01) { if (inb (STATUS (port)) & 0x01) {
clear_epp_timeout (port); clear_epp_timeout (port);
break; break;
...@@ -434,7 +438,8 @@ static size_t parport_pc_epp_write_addr (struct parport *port, ...@@ -434,7 +438,8 @@ static size_t parport_pc_epp_write_addr (struct parport *port,
return length; return length;
} }
for (; written < length; written++) { for (; written < length; written++) {
outb (*((char*)buf)++, EPPADDR (port)); outb (*((char*)buf), EPPADDR (port));
buf++;
if (inb (STATUS (port)) & 0x01) { if (inb (STATUS (port)) & 0x01) {
clear_epp_timeout (port); clear_epp_timeout (port);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment