diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-01-03 18:09:36 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 17:39:30 -0500 |
commit | 7102d230d6e8cf48ab366fa110c0a7f5ea160d07 (patch) | |
tree | 6771763556f65654abae30c18e9092285ff7044b | |
parent | 904dbd1307100edc12e2f98dd12b2338f1914f5b (diff) |
drivers/ata/: make 4 functions static
This patch makes the following needlessly global functions static:
- libata-core.c: ata_qc_complete_internal()
- libata-scsi.c: ata_scsi_qc_new()
- libata-scsi.c: ata_dump_status()
- libata-scsi.c: ata_to_sense_error()
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/ata/libata-core.c | 2 | ||||
-rw-r--r-- | drivers/ata/libata-scsi.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index e267319bb2b1..2869469790b0 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -1156,7 +1156,7 @@ void ata_port_flush_task(struct ata_port *ap) | |||
1156 | ata_port_printk(ap, KERN_DEBUG, "%s: EXIT\n", __FUNCTION__); | 1156 | ata_port_printk(ap, KERN_DEBUG, "%s: EXIT\n", __FUNCTION__); |
1157 | } | 1157 | } |
1158 | 1158 | ||
1159 | void ata_qc_complete_internal(struct ata_queued_cmd *qc) | 1159 | static void ata_qc_complete_internal(struct ata_queued_cmd *qc) |
1160 | { | 1160 | { |
1161 | struct completion *waiting = qc->private_data; | 1161 | struct completion *waiting = qc->private_data; |
1162 | 1162 | ||
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 99face8e4b23..57111f842d66 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -397,9 +397,9 @@ int ata_scsi_ioctl(struct scsi_device *scsidev, int cmd, void __user *arg) | |||
397 | * RETURNS: | 397 | * RETURNS: |
398 | * Command allocated, or %NULL if none available. | 398 | * Command allocated, or %NULL if none available. |
399 | */ | 399 | */ |
400 | struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, | 400 | static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, |
401 | struct scsi_cmnd *cmd, | 401 | struct scsi_cmnd *cmd, |
402 | void (*done)(struct scsi_cmnd *)) | 402 | void (*done)(struct scsi_cmnd *)) |
403 | { | 403 | { |
404 | struct ata_queued_cmd *qc; | 404 | struct ata_queued_cmd *qc; |
405 | 405 | ||
@@ -435,7 +435,7 @@ struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, | |||
435 | * LOCKING: | 435 | * LOCKING: |
436 | * inherited from caller | 436 | * inherited from caller |
437 | */ | 437 | */ |
438 | void ata_dump_status(unsigned id, struct ata_taskfile *tf) | 438 | static void ata_dump_status(unsigned id, struct ata_taskfile *tf) |
439 | { | 439 | { |
440 | u8 stat = tf->command, err = tf->feature; | 440 | u8 stat = tf->command, err = tf->feature; |
441 | 441 | ||
@@ -610,8 +610,8 @@ int ata_scsi_device_resume(struct scsi_device *sdev) | |||
610 | * LOCKING: | 610 | * LOCKING: |
611 | * spin_lock_irqsave(host lock) | 611 | * spin_lock_irqsave(host lock) |
612 | */ | 612 | */ |
613 | void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc, | 613 | static void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, |
614 | u8 *ascq, int verbose) | 614 | u8 *asc, u8 *ascq, int verbose) |
615 | { | 615 | { |
616 | int i; | 616 | int i; |
617 | 617 | ||