From: Doug Maxey <dwm@xxxxxxxxxxx> - move the defn to before the call. - make defn static. Signed-off-by: Doug Maxey <dwm@xxxxxxxxxxx> --- drivers/scsi/qla4xxx/ql4_os.c | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 087944a..6ae7079 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -1645,6 +1645,22 @@ eh_dev_reset_done: } /** + * qla4xxx_reset_target - performs target reset + * @ha: Pointer to host adapter structure. + * @ddb_entry: Pointer to device database entry + * + * This routine issues either a warm or cold target reset to the + * specified device. The caller must ensure that the ddb_entry pointer + * is valid before calling this routine. + * + **/ +static int qla4xxx_reset_target(struct scsi_qla_host *ha, + struct ddb_entry *ddb_entry) +{ + return QLA_SUCCESS; +} + +/** * qla4xxx_eh_bus_reset - callback to issue bus reset. * @cmd: Pointer to Linux's SCSI command structure * @@ -1692,21 +1708,6 @@ static int qla4xxx_eh_bus_reset(struct s } /** - * qla4xxx_reset_target - performs target reset - * @ha: Pointer to host adapter structure. - * @ddb_entry: Pointer to device database entry - * - * This routine issues either a warm or cold target reset to the - * specified device. The caller must ensure that the ddb_entry pointer - * is valid before calling this routine. - * - **/ -int qla4xxx_reset_target(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry) -{ - return QLA_SUCCESS; -} - -/** * qla4xxx_flush_active_srbs - returns all outstanding i/o requests to O.S. * @ha: Pointer to host adapter structure. * - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html