Hi Chris, all,
> --- a/drivers/scsi/scsi_lib.c
> +++ b/drivers/scsi/scsi_lib.c
> @@ -1534,11 +1534,6 @@ struct request_queue *scsi_alloc_queue(s
> */
> if (shost->ordered_tag)
> blk_queue_ordered(q, QUEUE_ORDERED_TAG);
> - else if (shost->ordered_flush) {
> - blk_queue_ordered(q, QUEUE_ORDERED_FLUSH);
> - q->prepare_flush_fn = scsi_prepare_flush_fn;
> - q->end_flush_fn = scsi_end_flush_fn;
> - }
>
> if (!shost->use_clustering)
> clear_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags);
This change causes the following warnings:
drivers/scsi/scsi_lib.c:1035: warning: `scsi_prepare_flush_fn' defined but not used
drivers/scsi/scsi_lib.c:1050: warning: `scsi_end_flush_fn' defined but not used
Following patch fixes this.
Thanks.
* * * * *
Fix the following warnings introduced by stable patch 2.6.15.4:
drivers/scsi/scsi_lib.c:1035: warning: `scsi_prepare_flush_fn' defined but not used
drivers/scsi/scsi_lib.c:1050: warning: `scsi_end_flush_fn' defined but not used
Signed-off-by: Jean Delvare <[email protected]>
---
drivers/scsi/scsi_lib.c | 32 --------------------------------
1 file changed, 32 deletions(-)
--- linux-2.6.15.4.orig/drivers/scsi/scsi_lib.c 2006-02-10 18:50:46.000000000 +0100
+++ linux-2.6.15.4/drivers/scsi/scsi_lib.c 2006-02-10 19:14:57.000000000 +0100
@@ -1031,38 +1031,6 @@
return BLKPREP_KILL;
}
-static int scsi_prepare_flush_fn(request_queue_t *q, struct request *rq)
-{
- struct scsi_device *sdev = q->queuedata;
- struct scsi_driver *drv;
-
- if (sdev->sdev_state == SDEV_RUNNING) {
- drv = *(struct scsi_driver **) rq->rq_disk->private_data;
-
- if (drv->prepare_flush)
- return drv->prepare_flush(q, rq);
- }
-
- return 0;
-}
-
-static void scsi_end_flush_fn(request_queue_t *q, struct request *rq)
-{
- struct scsi_device *sdev = q->queuedata;
- struct request *flush_rq = rq->end_io_data;
- struct scsi_driver *drv;
-
- if (flush_rq->errors) {
- printk("scsi: barrier error, disabling flush support\n");
- blk_queue_ordered(q, QUEUE_ORDERED_NONE);
- }
-
- if (sdev->sdev_state == SDEV_RUNNING) {
- drv = *(struct scsi_driver **) rq->rq_disk->private_data;
- drv->end_flush(q, rq);
- }
-}
-
static int scsi_issue_flush_fn(request_queue_t *q, struct gendisk *disk,
sector_t *error_sector)
{
--
Jean Delvare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]