]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: rts5139: device_reset() can be static
authorShawn Guo <shawn.guo@linaro.org>
Mon, 1 Apr 2013 12:01:13 +0000 (20:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2013 19:25:43 +0000 (12:25 -0700)
Function device_reset() is only used in rts51x_scsi.c, so make it be
static.  Otherwise, it will have a name collision with the new added
reset API.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5139/rts51x_scsi.c
drivers/staging/rts5139/rts51x_scsi.h

index 052911c931037a855c634685f4467b395494568f..b58f1dfe006df46aaacec6bb8d59c72855e1a000 100644 (file)
@@ -2072,7 +2072,7 @@ int command_abort(struct scsi_cmnd *srb)
 
 /* This invokes the transport reset mechanism to reset the state of the
  * device */
-int device_reset(struct scsi_cmnd *srb)
+static int device_reset(struct scsi_cmnd *srb)
 {
        int result = 0;
 
index cdfe550371cec9cb58c7e91ed1c6ddd494b07bc3..3a5213611d21e745cb6b718a3f752fb060658ec6 100644 (file)
@@ -151,7 +151,6 @@ int proc_info(struct Scsi_Host *host, char *buffer,
              char **start, off_t offset, int length, int inout);
 int queuecommand(struct Scsi_Host *, struct scsi_cmnd *);
 int command_abort(struct scsi_cmnd *srb);
-int device_reset(struct scsi_cmnd *srb);
 int bus_reset(struct scsi_cmnd *srb);
 
 #endif /* __RTS51X_SCSI_H */