Make ata_bus_probe() extern and put its prototype in libata private header file. It will be called from libata-eh.c. Signed-off-by: Tejun Heo <htejun@xxxxxxxxx> --- drivers/scsi/libata-core.c | 2 +- drivers/scsi/libata.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) b0d71bd83fe780a3831d5a2414df632cd3f0aaf9 diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index a6c984f..0206791 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -1473,7 +1473,7 @@ static void ata_dev_init(struct ata_port * the port has no enabled device after probing, or any negative * errno from ->probe_reset. */ -static int ata_bus_probe(struct ata_port *ap) +int ata_bus_probe(struct ata_port *ap) { int existing_dev_failed = 0; unsigned int classes[ATA_MAX_DEVICES]; diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index 7faa9a4..659badb 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h @@ -43,6 +43,7 @@ struct ata_scsi_args { extern int atapi_enabled; extern int atapi_dmadir; extern int libata_fua; +extern int ata_bus_probe(struct ata_port *ap); extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap, struct ata_device *dev); extern int ata_rwcmd_protocol(struct ata_queued_cmd *qc); -- 1.2.4 - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html