[ide] make try_to_flush_leftover_data() static

Hi,

now that you cleaned up the ide-io.c code to be all in the right file,
try_to_flush_leftover_data can become static since all users are in this
file now.

bart: also remove declaration from <linux/ide.h>
Signed-off-by: default avatarArjan van de Ven <arjan@infradead.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 80a47504
...@@ -437,7 +437,7 @@ EXPORT_SYMBOL(ide_end_drive_cmd); ...@@ -437,7 +437,7 @@ EXPORT_SYMBOL(ide_end_drive_cmd);
* by read a sector's worth of data from the drive. Of course, * by read a sector's worth of data from the drive. Of course,
* this may not help if the drive is *waiting* for data from *us*. * this may not help if the drive is *waiting* for data from *us*.
*/ */
void try_to_flush_leftover_data (ide_drive_t *drive) static void try_to_flush_leftover_data (ide_drive_t *drive)
{ {
int i = (drive->mult_count ? drive->mult_count : 1) * SECTOR_WORDS; int i = (drive->mult_count ? drive->mult_count : 1) * SECTOR_WORDS;
...@@ -452,8 +452,6 @@ void try_to_flush_leftover_data (ide_drive_t *drive) ...@@ -452,8 +452,6 @@ void try_to_flush_leftover_data (ide_drive_t *drive)
} }
} }
EXPORT_SYMBOL(try_to_flush_leftover_data);
static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
......
...@@ -1250,8 +1250,6 @@ extern int ide_do_drive_cmd(ide_drive_t *, struct request *, ide_action_t); ...@@ -1250,8 +1250,6 @@ extern int ide_do_drive_cmd(ide_drive_t *, struct request *, ide_action_t);
*/ */
extern void ide_end_drive_cmd(ide_drive_t *, u8, u8); extern void ide_end_drive_cmd(ide_drive_t *, u8, u8);
extern void try_to_flush_leftover_data(ide_drive_t *);
/* /*
* Issue ATA command and wait for completion. * Issue ATA command and wait for completion.
* Use for implementing commands in kernel * Use for implementing commands in kernel
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment