summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-04-01 20:01:13 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-01 12:25:43 -0700
commitaf56976dd21efe8e91d5175913c2b1f7be91c651 (patch)
tree322812529492b314203c6d62e37fe6fce85bb72f
parent10f035a0104234ca1147c88c5850e405ebc0e92e (diff)
staging: rts5139: device_reset() can be static
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>
-rw-r--r--drivers/staging/rts5139/rts51x_scsi.c2
-rw-r--r--drivers/staging/rts5139/rts51x_scsi.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rts5139/rts51x_scsi.c b/drivers/staging/rts5139/rts51x_scsi.c
index 052911c93103..b58f1dfe006d 100644
--- a/drivers/staging/rts5139/rts51x_scsi.c
+++ b/drivers/staging/rts5139/rts51x_scsi.c
@@ -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;
diff --git a/drivers/staging/rts5139/rts51x_scsi.h b/drivers/staging/rts5139/rts51x_scsi.h
index cdfe550371ce..3a5213611d21 100644
--- a/drivers/staging/rts5139/rts51x_scsi.h
+++ b/drivers/staging/rts5139/rts51x_scsi.h
@@ -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 */