[ide] remove more dead ide exports

From: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 18c204c8
...@@ -543,8 +543,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat) ...@@ -543,8 +543,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(ide_error);
/** /**
* ide_abort - abort pending IDE operatins * ide_abort - abort pending IDE operatins
* @drive: drive the error occurred on * @drive: drive the error occurred on
...@@ -585,8 +583,6 @@ ide_startstop_t ide_abort(ide_drive_t *drive, const char *msg) ...@@ -585,8 +583,6 @@ ide_startstop_t ide_abort(ide_drive_t *drive, const char *msg)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(ide_abort);
/** /**
* ide_cmd - issue a simple drive command * ide_cmd - issue a simple drive command
* @drive: drive the command is for * @drive: drive the command is for
...@@ -598,7 +594,8 @@ EXPORT_SYMBOL(ide_abort); ...@@ -598,7 +594,8 @@ EXPORT_SYMBOL(ide_abort);
* The drive must be selected beforehand. * The drive must be selected beforehand.
*/ */
void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler) static void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect,
ide_handler_t *handler)
{ {
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = HWIF(drive);
if (IDE_CONTROL_REG) if (IDE_CONTROL_REG)
...@@ -608,8 +605,6 @@ void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler) ...@@ -608,8 +605,6 @@ void ide_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler)
ide_execute_command(drive, cmd, handler, WAIT_CMD, NULL); ide_execute_command(drive, cmd, handler, WAIT_CMD, NULL);
} }
EXPORT_SYMBOL(ide_cmd);
/** /**
* drive_cmd_intr - drive command completion interrupt * drive_cmd_intr - drive command completion interrupt
* @drive: drive the completion interrupt occurred on * @drive: drive the completion interrupt occurred on
...@@ -620,7 +615,7 @@ EXPORT_SYMBOL(ide_cmd); ...@@ -620,7 +615,7 @@ EXPORT_SYMBOL(ide_cmd);
* the request * the request
*/ */
ide_startstop_t drive_cmd_intr (ide_drive_t *drive) static ide_startstop_t drive_cmd_intr (ide_drive_t *drive)
{ {
struct request *rq = HWGROUP(drive)->rq; struct request *rq = HWGROUP(drive)->rq;
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = HWIF(drive);
...@@ -645,8 +640,6 @@ ide_startstop_t drive_cmd_intr (ide_drive_t *drive) ...@@ -645,8 +640,6 @@ ide_startstop_t drive_cmd_intr (ide_drive_t *drive)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(drive_cmd_intr);
/** /**
* do_special - issue some special commands * do_special - issue some special commands
* @drive: drive the command is for * @drive: drive the command is for
...@@ -656,7 +649,7 @@ EXPORT_SYMBOL(drive_cmd_intr); ...@@ -656,7 +649,7 @@ EXPORT_SYMBOL(drive_cmd_intr);
* back. * back.
*/ */
ide_startstop_t do_special (ide_drive_t *drive) static ide_startstop_t do_special (ide_drive_t *drive)
{ {
special_t *s = &drive->special; special_t *s = &drive->special;
...@@ -673,8 +666,6 @@ ide_startstop_t do_special (ide_drive_t *drive) ...@@ -673,8 +666,6 @@ ide_startstop_t do_special (ide_drive_t *drive)
return DRIVER(drive)->special(drive); return DRIVER(drive)->special(drive);
} }
EXPORT_SYMBOL(do_special);
void ide_map_sg(ide_drive_t *drive, struct request *rq) void ide_map_sg(ide_drive_t *drive, struct request *rq)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
...@@ -715,7 +706,8 @@ EXPORT_SYMBOL_GPL(ide_init_sg_cmd); ...@@ -715,7 +706,8 @@ EXPORT_SYMBOL_GPL(ide_init_sg_cmd);
* all commands to finish. Don't do this as that is due to change * all commands to finish. Don't do this as that is due to change
*/ */
ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq) static ide_startstop_t execute_drive_cmd (ide_drive_t *drive,
struct request *rq)
{ {
ide_hwif_t *hwif = HWIF(drive); ide_hwif_t *hwif = HWIF(drive);
if (rq->flags & REQ_DRIVE_TASKFILE) { if (rq->flags & REQ_DRIVE_TASKFILE) {
...@@ -805,8 +797,6 @@ ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq) ...@@ -805,8 +797,6 @@ ide_startstop_t execute_drive_cmd (ide_drive_t *drive, struct request *rq)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(execute_drive_cmd);
/** /**
* start_request - start of I/O and command issuing for IDE * start_request - start of I/O and command issuing for IDE
* *
...@@ -818,7 +808,7 @@ EXPORT_SYMBOL(execute_drive_cmd); ...@@ -818,7 +808,7 @@ EXPORT_SYMBOL(execute_drive_cmd);
* FIXME: this function needs a rename * FIXME: this function needs a rename
*/ */
ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
{ {
ide_startstop_t startstop; ide_startstop_t startstop;
sector_t block; sector_t block;
...@@ -909,8 +899,6 @@ ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) ...@@ -909,8 +899,6 @@ ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
return ide_stopped; return ide_stopped;
} }
EXPORT_SYMBOL(start_request);
/** /**
* ide_stall_queue - pause an IDE device * ide_stall_queue - pause an IDE device
* @drive: drive to stall * @drive: drive to stall
...@@ -1033,10 +1021,7 @@ static inline ide_drive_t *choose_drive (ide_hwgroup_t *hwgroup) ...@@ -1033,10 +1021,7 @@ static inline ide_drive_t *choose_drive (ide_hwgroup_t *hwgroup)
* the driver. This makes the driver much more friendlier to shared IRQs * the driver. This makes the driver much more friendlier to shared IRQs
* than previous designs, while remaining 100% (?) SMP safe and capable. * than previous designs, while remaining 100% (?) SMP safe and capable.
*/ */
/* --BenH: made non-static as ide-pmac.c uses it to kick the hwgroup back static void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
* into life on wakeup from machine sleep.
*/
void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
{ {
ide_drive_t *drive; ide_drive_t *drive;
ide_hwif_t *hwif; ide_hwif_t *hwif;
...@@ -1168,8 +1153,6 @@ void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq) ...@@ -1168,8 +1153,6 @@ void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
} }
} }
EXPORT_SYMBOL(ide_do_request);
/* /*
* Passes the stuff to ide_do_request * Passes the stuff to ide_do_request
*/ */
...@@ -1334,8 +1317,6 @@ void ide_timer_expiry (unsigned long data) ...@@ -1334,8 +1317,6 @@ void ide_timer_expiry (unsigned long data)
spin_unlock_irqrestore(&ide_lock, flags); spin_unlock_irqrestore(&ide_lock, flags);
} }
EXPORT_SYMBOL(ide_timer_expiry);
/** /**
* unexpected_intr - handle an unexpected IDE interrupt * unexpected_intr - handle an unexpected IDE interrupt
* @irq: interrupt line * @irq: interrupt line
...@@ -1533,8 +1514,6 @@ irqreturn_t ide_intr (int irq, void *dev_id, struct pt_regs *regs) ...@@ -1533,8 +1514,6 @@ irqreturn_t ide_intr (int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
EXPORT_SYMBOL(ide_intr);
/** /**
* ide_init_drive_cmd - initialize a drive command request * ide_init_drive_cmd - initialize a drive command request
* @rq: request object * @rq: request object
......
...@@ -673,8 +673,6 @@ int ide_ata66_check (ide_drive_t *drive, ide_task_t *args) ...@@ -673,8 +673,6 @@ int ide_ata66_check (ide_drive_t *drive, ide_task_t *args)
return 0; return 0;
} }
EXPORT_SYMBOL(ide_ata66_check);
/* /*
* Backside of HDIO_DRIVE_CMD call of SETFEATURES_XFER. * Backside of HDIO_DRIVE_CMD call of SETFEATURES_XFER.
* 1 : Safe to update drive->id DMA registers. * 1 : Safe to update drive->id DMA registers.
...@@ -693,9 +691,8 @@ int set_transfer (ide_drive_t *drive, ide_task_t *args) ...@@ -693,9 +691,8 @@ int set_transfer (ide_drive_t *drive, ide_task_t *args)
return 0; return 0;
} }
EXPORT_SYMBOL(set_transfer); #ifdef CONFIG_BLK_DEV_IDEDMA
static u8 ide_auto_reduce_xfer (ide_drive_t *drive)
u8 ide_auto_reduce_xfer (ide_drive_t *drive)
{ {
if (!drive->crc_count) if (!drive->crc_count)
return drive->current_speed; return drive->current_speed;
...@@ -719,8 +716,7 @@ u8 ide_auto_reduce_xfer (ide_drive_t *drive) ...@@ -719,8 +716,7 @@ u8 ide_auto_reduce_xfer (ide_drive_t *drive)
default: return XFER_PIO_4; default: return XFER_PIO_4;
} }
} }
#endif /* CONFIG_BLK_DEV_IDEDMA */
EXPORT_SYMBOL(ide_auto_reduce_xfer);
/* /*
* Update the * Update the
...@@ -795,8 +791,6 @@ int ide_driveid_update (ide_drive_t *drive) ...@@ -795,8 +791,6 @@ int ide_driveid_update (ide_drive_t *drive)
#endif #endif
} }
EXPORT_SYMBOL(ide_driveid_update);
/* /*
* Similar to ide_wait_stat(), except it never calls ide_error internally. * Similar to ide_wait_stat(), except it never calls ide_error internally.
* This is a kludge to handle the new ide_config_drive_speed() function, * This is a kludge to handle the new ide_config_drive_speed() function,
...@@ -936,7 +930,7 @@ EXPORT_SYMBOL(ide_config_drive_speed); ...@@ -936,7 +930,7 @@ EXPORT_SYMBOL(ide_config_drive_speed);
* *
* See also ide_execute_command * See also ide_execute_command
*/ */
void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, static void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
unsigned int timeout, ide_expiry_t *expiry) unsigned int timeout, ide_expiry_t *expiry)
{ {
ide_hwgroup_t *hwgroup = HWGROUP(drive); ide_hwgroup_t *hwgroup = HWGROUP(drive);
...@@ -952,8 +946,6 @@ void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, ...@@ -952,8 +946,6 @@ void __ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
add_timer(&hwgroup->timer); add_timer(&hwgroup->timer);
} }
EXPORT_SYMBOL(__ide_set_handler);
void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler, void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
unsigned int timeout, ide_expiry_t *expiry) unsigned int timeout, ide_expiry_t *expiry)
{ {
......
...@@ -421,8 +421,6 @@ void ide_toggle_bounce(ide_drive_t *drive, int on) ...@@ -421,8 +421,6 @@ void ide_toggle_bounce(ide_drive_t *drive, int on)
blk_queue_bounce_limit(drive->queue, addr); blk_queue_bounce_limit(drive->queue, addr);
} }
EXPORT_SYMBOL(ide_toggle_bounce);
/** /**
* ide_set_xfer_rate - set transfer rate * ide_set_xfer_rate - set transfer rate
* @drive: drive to set * @drive: drive to set
......
...@@ -419,7 +419,7 @@ EXPORT_SYMBOL(task_in_intr); ...@@ -419,7 +419,7 @@ EXPORT_SYMBOL(task_in_intr);
/* /*
* Handler for command with PIO data-out phase (Write/Write Multiple). * Handler for command with PIO data-out phase (Write/Write Multiple).
*/ */
ide_startstop_t task_out_intr (ide_drive_t *drive) static ide_startstop_t task_out_intr (ide_drive_t *drive)
{ {
ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif;
struct request *rq = HWGROUP(drive)->rq; struct request *rq = HWGROUP(drive)->rq;
...@@ -444,8 +444,6 @@ ide_startstop_t task_out_intr (ide_drive_t *drive) ...@@ -444,8 +444,6 @@ ide_startstop_t task_out_intr (ide_drive_t *drive)
return ide_started; return ide_started;
} }
EXPORT_SYMBOL(task_out_intr);
ide_startstop_t pre_task_out_intr (ide_drive_t *drive, struct request *rq) ide_startstop_t pre_task_out_intr (ide_drive_t *drive, struct request *rq)
{ {
ide_startstop_t startstop; ide_startstop_t startstop;
......
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
#include "ide-timing.h" #include "ide-timing.h"
extern void ide_do_request(ide_hwgroup_t *hwgroup, int masked_irq);
#define IDE_PMAC_DEBUG #define IDE_PMAC_DEBUG
#define DMA_WAIT_TIMEOUT 50 #define DMA_WAIT_TIMEOUT 50
......
...@@ -1194,14 +1194,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, byte stat); ...@@ -1194,14 +1194,6 @@ ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, byte stat);
*/ */
extern ide_startstop_t ide_abort(ide_drive_t *, const char *); extern ide_startstop_t ide_abort(ide_drive_t *, const char *);
/*
* Issue a simple drive command
* The drive must be selected beforehand.
*
* (drive, command, nsector, handler)
*/
extern void ide_cmd(ide_drive_t *, u8, u8, ide_handler_t *);
extern void ide_fix_driveid(struct hd_driveid *); extern void ide_fix_driveid(struct hd_driveid *);
/* /*
* ide_fixstring() cleans up and (optionally) byte-swaps a text string, * ide_fixstring() cleans up and (optionally) byte-swaps a text string,
...@@ -1366,7 +1358,6 @@ extern ide_startstop_t recal_intr(ide_drive_t *); ...@@ -1366,7 +1358,6 @@ extern ide_startstop_t recal_intr(ide_drive_t *);
extern ide_startstop_t task_no_data_intr(ide_drive_t *); extern ide_startstop_t task_no_data_intr(ide_drive_t *);
extern ide_startstop_t task_in_intr(ide_drive_t *); extern ide_startstop_t task_in_intr(ide_drive_t *);
extern ide_startstop_t pre_task_out_intr(ide_drive_t *, struct request *); extern ide_startstop_t pre_task_out_intr(ide_drive_t *, struct request *);
extern ide_startstop_t task_out_intr(ide_drive_t *);
extern int ide_raw_taskfile(ide_drive_t *, ide_task_t *, u8 *); extern int ide_raw_taskfile(ide_drive_t *, ide_task_t *, u8 *);
...@@ -1376,7 +1367,6 @@ int ide_task_ioctl(ide_drive_t *, unsigned int, unsigned long); ...@@ -1376,7 +1367,6 @@ int ide_task_ioctl(ide_drive_t *, unsigned int, unsigned long);
extern int system_bus_clock(void); extern int system_bus_clock(void);
extern u8 ide_auto_reduce_xfer(ide_drive_t *);
extern int ide_driveid_update(ide_drive_t *); extern int ide_driveid_update(ide_drive_t *);
extern int ide_ata66_check(ide_drive_t *, ide_task_t *); extern int ide_ata66_check(ide_drive_t *, ide_task_t *);
extern int ide_config_drive_speed(ide_drive_t *, u8); extern int ide_config_drive_speed(ide_drive_t *, u8);
......
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