drivers/scsi/libata-*: make some functions static
PATCH 1/1 drivers/scsi/libata-*: make some functions static
This patch makes some needlesly global functions static.
Signed-off-by Adrian Bunk <[email protected]>
---
drivers/scsi/libata-core.c | 3 ++- drivers/scsi/libata-scsi.c | 18 +++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-)
drivers/scsi/libata-core.c renamed from drivers/scsi/libata-core.c.old +2 -1
@@ -2775,7 +2775,8 @@* None. (grabs host lock) */ -void ata_poll_qc_complete (struct ata_queued_cmd *qc,unsigned int err_mask) +static void ata_poll_qc_complete (struct ata_queued_cmd *qc, +unsigned int err_mask) {struct ata_port *ap = qc->ap;unsigned long flags;
drivers/scsi/libata-scsi.c renamed from drivers/scsi/libata-scsi.c.old +9 -9
@@ -325,10 +325,10 @@* RETURNS: * Command allocated, or %NULL if none available. */ -struct ata_queued_cmd *ata_scsi_qc_new (struct ata_port *ap, -struct ata_device *dev, -struct scsi_cmnd *cmd, -void (*done)(struct scsi_cmnd *)) +static struct ata_queued_cmd *ata_scsi_qc_new (struct ata_port *ap, +struct ata_device *dev, +struct scsi_cmnd *cmd, +void (*done)(struct scsi_cmnd *)) {struct ata_queued_cmd *qc;
@@ -364,7 +364,7 @@* LOCKING: * inherited from caller */ -void ata_dump_status (unsigned id,struct ata_taskfile *tf) +static void ata_dump_status (unsigned id,struct ata_taskfile *tf) {u8 stat = tf->command, err = tf->feature;
@@ -413,8 +413,8 @@* LOCKING: * spin_lock_irqsave(host_set lock) */ -void ata_to_sense_error (unsigned id,u8 drv_stat,u8 drv_err,u8 *sk,u8 *asc, -u8 *ascq) +static void ata_to_sense_error (unsigned id,u8 drv_stat,u8 drv_err, +u8 *sk,u8 *asc,u8 *ascq) {int i;
@@ -524,7 +524,7 @@* LOCKING: * spin_lock_irqsave(host_set lock) */ -void ata_gen_ata_desc_sense (struct ata_queued_cmd *qc) +static void ata_gen_ata_desc_sense (struct ata_queued_cmd *qc) {struct scsi_cmnd *cmd = qc->scsicmd;struct ata_taskfile *tf = &qc->tf;
@@ -600,7 +600,7 @@* LOCKING: * inherited from caller */ -void ata_gen_fixed_sense (struct ata_queued_cmd *qc) +static void ata_gen_fixed_sense (struct ata_queued_cmd *qc) {struct scsi_cmnd *cmd = qc->scsicmd;struct ata_taskfile *tf = &qc->tf;