[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>
This commit is contained in:
Tejun Heo 2006-06-24 20:30:19 +09:00 committed by Jeff Garzik
parent 977e6b9f3a
commit 77b08fb56a
2 changed files with 4 additions and 2 deletions

View File

@ -1145,7 +1145,7 @@ unsigned ata_exec_internal(struct ata_device *dev,
* RETURNS: * RETURNS:
* Zero on success, AC_ERR_* mask on failure * Zero on success, AC_ERR_* mask on failure
*/ */
static unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd) unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd)
{ {
struct ata_taskfile tf; struct ata_taskfile tf;
@ -4973,7 +4973,7 @@ int ata_port_offline(struct ata_port *ap)
return 0; return 0;
} }
static int ata_flush_cache(struct ata_device *dev) int ata_flush_cache(struct ata_device *dev)
{ {
unsigned int err_mask; unsigned int err_mask;
u8 cmd; u8 cmd;

View File

@ -50,6 +50,7 @@ extern void ata_port_flush_task(struct ata_port *ap);
extern unsigned ata_exec_internal(struct ata_device *dev, extern unsigned ata_exec_internal(struct ata_device *dev,
struct ata_taskfile *tf, const u8 *cdb, struct ata_taskfile *tf, const u8 *cdb,
int dma_dir, void *buf, unsigned int buflen); int dma_dir, void *buf, unsigned int buflen);
extern unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd);
extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
int post_reset, u16 *id); int post_reset, u16 *id);
extern int ata_dev_configure(struct ata_device *dev, int print_info); 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);
extern void ata_dev_select(struct ata_port *ap, unsigned int device, extern void ata_dev_select(struct ata_port *ap, unsigned int device,
unsigned int wait, unsigned int can_sleep); unsigned int wait, unsigned int can_sleep);
extern void swap_buf_le16(u16 *buf, unsigned int buf_words); extern void swap_buf_le16(u16 *buf, unsigned int buf_words);
extern int ata_flush_cache(struct ata_device *dev);
extern void ata_dev_init(struct ata_device *dev); extern void ata_dev_init(struct ata_device *dev);
extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg); extern int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg);
extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg); extern int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg);