aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian King <brking@us.ibm.com>2006-03-17 18:04:03 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-21 21:03:43 -0500
commite46834cd2ddb1e2941806cb8fec60fb6bdd2ec29 (patch)
tree770dfbbb56f8c9b7e748e9982875cc4522454ffb
parentf59b0cf8a3a39b75e580066c6a9aeabd97ec2743 (diff)
[PATCH] libata: Add some dummy noop functions
Add some dummy noop functions for use by libata clients that do not need to do anything. Future SAS patches will utilize these functions. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/scsi/libata-core.c3
-rw-r--r--include/linux/libata.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 7a5392c8ec6f..8c86ae8d79b5 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -2865,6 +2865,8 @@ void ata_qc_prep(struct ata_queued_cmd *qc)
2865 ata_fill_sg(qc); 2865 ata_fill_sg(qc);
2866} 2866}
2867 2867
2868void ata_noop_qc_prep(struct ata_queued_cmd *qc) { }
2869
2868/** 2870/**
2869 * ata_sg_init_one - Associate command with memory buffer 2871 * ata_sg_init_one - Associate command with memory buffer
2870 * @qc: Command to be associated 2872 * @qc: Command to be associated
@@ -5063,6 +5065,7 @@ EXPORT_SYMBOL_GPL(ata_port_stop);
5063EXPORT_SYMBOL_GPL(ata_host_stop); 5065EXPORT_SYMBOL_GPL(ata_host_stop);
5064EXPORT_SYMBOL_GPL(ata_interrupt); 5066EXPORT_SYMBOL_GPL(ata_interrupt);
5065EXPORT_SYMBOL_GPL(ata_qc_prep); 5067EXPORT_SYMBOL_GPL(ata_qc_prep);
5068EXPORT_SYMBOL_GPL(ata_noop_qc_prep);
5066EXPORT_SYMBOL_GPL(ata_bmdma_setup); 5069EXPORT_SYMBOL_GPL(ata_bmdma_setup);
5067EXPORT_SYMBOL_GPL(ata_bmdma_start); 5070EXPORT_SYMBOL_GPL(ata_bmdma_start);
5068EXPORT_SYMBOL_GPL(ata_bmdma_irq_clear); 5071EXPORT_SYMBOL_GPL(ata_bmdma_irq_clear);
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 239408ecfddf..17e5a719c72b 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -543,6 +543,7 @@ extern void ata_port_stop (struct ata_port *ap);
543extern void ata_host_stop (struct ata_host_set *host_set); 543extern void ata_host_stop (struct ata_host_set *host_set);
544extern irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs); 544extern irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs);
545extern void ata_qc_prep(struct ata_queued_cmd *qc); 545extern void ata_qc_prep(struct ata_queued_cmd *qc);
546extern void ata_noop_qc_prep(struct ata_queued_cmd *qc);
546extern unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc); 547extern unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc);
547extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf, 548extern void ata_sg_init_one(struct ata_queued_cmd *qc, void *buf,
548 unsigned int buflen); 549 unsigned int buflen);