lkml.org 
[lkml]   [2011]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/8] scsi/atari: Provide a dummy NCR5380_exit()
    Date
    and call it from atari_scsi_release(), cfr. the other NCR5380 drivers.

    This fixes:

    drivers/scsi/NCR5380.h:303: warning: ‘NCR5380_exit’ declared ‘static’ but never defined

    Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Michael Schmitz <schmitz@debian.org>
    ---
    drivers/scsi/atari_NCR5380.c | 5 +++++
    drivers/scsi/atari_scsi.c | 1 +
    2 files changed, 6 insertions(+), 0 deletions(-)

    diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c
    index 24652f1..2db79b4 100644
    --- a/drivers/scsi/atari_NCR5380.c
    +++ b/drivers/scsi/atari_NCR5380.c
    @@ -892,6 +892,11 @@ static int __init NCR5380_init(struct Scsi_Host *instance, int flags)
    return 0;
    }

    +static void NCR5380_exit(struct Scsi_Host *instance)
    +{
    + /* Empty, as we didn't schedule any delayed work */
    +}
    +
    /*
    * Function : int NCR5380_queue_command (Scsi_Cmnd *cmd,
    * void (*done)(Scsi_Cmnd *))
    diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c
    index 3e8658e..04a154f 100644
    --- a/drivers/scsi/atari_scsi.c
    +++ b/drivers/scsi/atari_scsi.c
    @@ -730,6 +730,7 @@ int atari_scsi_release(struct Scsi_Host *sh)
    free_irq(IRQ_TT_MFP_SCSI, sh);
    if (atari_dma_buffer)
    atari_stram_free(atari_dma_buffer);
    + NCR5380_exit(sh);
    return 1;
    }

    --
    1.7.0.4
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-06-13 20:43    [W:0.020 / U:31.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site