diff options
author | Tejun Heo <htejun@gmail.com> | 2006-06-24 07:30:19 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-26 20:59:27 -0400 |
commit | 77b08fb56a41e84b5e78b14f24d79879235e3337 (patch) | |
tree | fd91513aa74ea2d87bb5352b533a6985595778c7 | |
parent | 977e6b9f3a9b17f1c608a9d1e5a7b5c46a5f7d4a (diff) |
[PATCH] libata: make two functions global
Make ata_do_simple_cmd() and ata_flush_cache() global. These will be
used from libata-eh.c.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/scsi/libata-core.c | 4 | ||||
-rw-r--r-- | drivers/scsi/libata.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 4a44e759e45a..60e80e3a8858 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1145,7 +1145,7 @@ unsigned ata_exec_internal(struct ata_device *dev, | |||
1145 | * RETURNS: | 1145 | * RETURNS: |
1146 | * Zero on success, AC_ERR_* mask on failure | 1146 | * Zero on success, AC_ERR_* mask on failure |
1147 | */ | 1147 | */ |
1148 | static unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd) | 1148 | unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd) |
1149 | { | 1149 | { |
1150 | struct ata_taskfile tf; | 1150 | struct ata_taskfile tf; |
1151 | 1151 | ||
@@ -4973,7 +4973,7 @@ int ata_port_offline(struct ata_port *ap) | |||
4973 | return 0; | 4973 | return 0; |
4974 | } | 4974 | } |
4975 | 4975 | ||
4976 | static int ata_flush_cache(struct ata_device *dev) | 4976 | int ata_flush_cache(struct ata_device *dev) |
4977 | { | 4977 | { |
4978 | unsigned int err_mask; | 4978 | unsigned int err_mask; |
4979 | u8 cmd; | 4979 | u8 cmd; |
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index e367a3af409f..c325679d9b54 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h | |||
@@ -50,6 +50,7 @@ extern void ata_port_flush_task(struct ata_port *ap); | |||
50 | extern unsigned ata_exec_internal(struct ata_device *dev, | 50 | extern unsigned ata_exec_internal(struct ata_device *dev, |
51 | struct ata_taskfile *tf, const u8 *cdb, | 51 | struct ata_taskfile *tf, const u8 *cdb, |
52 | int dma_dir, void *buf, unsigned int buflen); | 52 | int dma_dir, void *buf, unsigned int buflen); |
53 | extern unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd); | ||
53 | extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, | 54 | extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, |
54 | int post_reset, u16 *id); | 55 | int post_reset, u16 *id); |
55 | extern int ata_dev_configure(struct ata_device *dev, int print_info); | 56 | extern int ata_dev_configure(struct ata_device *dev, int print_info); |
@@ -64,6 +65,7 @@ extern int ata_check_atapi_dma(struct ata_queued_cmd *qc); | |||
64 | extern void ata_dev_select(struct ata_port *ap, unsigned int device, | 65 | extern void ata_dev_select(struct ata_port *ap, unsigned int device, |
65 | unsigned int wait, unsigned int can_sleep); | 66 | unsigned int wait, unsigned int can_sleep); |
66 | extern void swap_buf_le16(u16 *buf, unsigned int buf_words); | 67 | extern void swap_buf_le16(u16 *buf, unsigned int buf_words); |
68 | extern int ata_flush_cache(struct ata_device *dev); | ||
67 | extern void ata_dev_init(struct ata_device *dev); | 69 | extern void ata_dev_init(struct ata_device *dev); |
68 | extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); | 70 | extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); |
69 | extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); | 71 | extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); |