Re: fdomain.c:1568: structure has no member named `address'

Paul Gortmaker (p_gortmaker@yahoo.com)
Mon, 11 Feb 2002 09:04:30 -0500


Miles Lane wrote:

> ../fdomain.c: In function `do_fdomain_16x0_intr':
> ../fdomain.c:1568: structure has no member named `address'
> ../fdomain.c:1601: structure has no member named `address'
> ../fdomain.c: In function `fdomain_16x0_queue':
> ../fdomain.c:1687: structure has no member named `address'
> ../fdomain.c: In function `fdomain_16x0_release':
> ../fdomain.c:2046: warning: control reaches end of non-void function

Try this and let us know if it works (or if smoke and flames pour out).

Patch is against 2.5.4.

Paul.

--- drivers/scsi/fdomain.c~ Mon Feb 11 08:56:16 2002
+++ drivers/scsi/fdomain.c Mon Feb 11 08:58:01 2002
@@ -1565,7 +1565,7 @@
if (current_SC->SCp.buffers_residual) {
--current_SC->SCp.buffers_residual;
++current_SC->SCp.buffer;
- current_SC->SCp.ptr = current_SC->SCp.buffer->address;
+ current_SC->SCp.ptr = page_address(current_SC->SCp.buffer->page) + current_SC->SCp.buffer->offset;
current_SC->SCp.this_residual = current_SC->SCp.buffer->length;
} else
break;
@@ -1598,7 +1598,7 @@
&& current_SC->SCp.buffers_residual) {
--current_SC->SCp.buffers_residual;
++current_SC->SCp.buffer;
- current_SC->SCp.ptr = current_SC->SCp.buffer->address;
+ current_SC->SCp.ptr = page_address(current_SC->SCp.buffer->page) + current_SC->SCp.buffer->offset;
current_SC->SCp.this_residual = current_SC->SCp.buffer->length;
}
}
@@ -1684,7 +1684,7 @@
if (current_SC->use_sg) {
current_SC->SCp.buffer =
(struct scatterlist *)current_SC->request_buffer;
- current_SC->SCp.ptr = current_SC->SCp.buffer->address;
+ current_SC->SCp.ptr = page_address(current_SC->SCp.buffer->page) + current_SC->SCp.buffer->offset;
current_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC->SCp.buffers_residual = current_SC->use_sg - 1;
} else {
@@ -2042,7 +2042,7 @@
free_irq(shpnt->irq, shpnt);
if (shpnt->io_port && shpnt->n_io_port)
release_region(shpnt->io_port, shpnt->n_io_port);
-
+ return 0;
}

MODULE_LICENSE("GPL");

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/