提交 7102d230 编写于 作者: A Adrian Bunk 提交者: Jeff Garzik

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: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 904dbd13
...@@ -1156,7 +1156,7 @@ void ata_port_flush_task(struct ata_port *ap) ...@@ -1156,7 +1156,7 @@ void ata_port_flush_task(struct ata_port *ap)
ata_port_printk(ap, KERN_DEBUG, "%s: EXIT\n", __FUNCTION__); ata_port_printk(ap, KERN_DEBUG, "%s: EXIT\n", __FUNCTION__);
} }
void ata_qc_complete_internal(struct ata_queued_cmd *qc) static void ata_qc_complete_internal(struct ata_queued_cmd *qc)
{ {
struct completion *waiting = qc->private_data; struct completion *waiting = qc->private_data;
......
...@@ -397,7 +397,7 @@ int ata_scsi_ioctl(struct scsi_device *scsidev, int cmd, void __user *arg) ...@@ -397,7 +397,7 @@ int ata_scsi_ioctl(struct scsi_device *scsidev, int cmd, void __user *arg)
* RETURNS: * RETURNS:
* Command allocated, or %NULL if none available. * Command allocated, or %NULL if none available.
*/ */
struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev,
struct scsi_cmnd *cmd, struct scsi_cmnd *cmd,
void (*done)(struct scsi_cmnd *)) void (*done)(struct scsi_cmnd *))
{ {
...@@ -435,7 +435,7 @@ struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, ...@@ -435,7 +435,7 @@ struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev,
* LOCKING: * LOCKING:
* inherited from caller * 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; u8 stat = tf->command, err = tf->feature;
...@@ -610,8 +610,8 @@ int ata_scsi_device_resume(struct scsi_device *sdev) ...@@ -610,8 +610,8 @@ int ata_scsi_device_resume(struct scsi_device *sdev)
* LOCKING: * LOCKING:
* spin_lock_irqsave(host lock) * spin_lock_irqsave(host lock)
*/ */
void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc, static void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk,
u8 *ascq, int verbose) u8 *asc, u8 *ascq, int verbose)
{ {
int i; int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册