提交 af56976d 编写于 作者: S Shawn Guo 提交者: Greg Kroah-Hartman

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: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 10f035a0
...@@ -2072,7 +2072,7 @@ int command_abort(struct scsi_cmnd *srb) ...@@ -2072,7 +2072,7 @@ int command_abort(struct scsi_cmnd *srb)
/* This invokes the transport reset mechanism to reset the state of the /* This invokes the transport reset mechanism to reset the state of the
* device */ * device */
int device_reset(struct scsi_cmnd *srb) static int device_reset(struct scsi_cmnd *srb)
{ {
int result = 0; int result = 0;
......
...@@ -151,7 +151,6 @@ int proc_info(struct Scsi_Host *host, char *buffer, ...@@ -151,7 +151,6 @@ int proc_info(struct Scsi_Host *host, char *buffer,
char **start, off_t offset, int length, int inout); char **start, off_t offset, int length, int inout);
int queuecommand(struct Scsi_Host *, struct scsi_cmnd *); int queuecommand(struct Scsi_Host *, struct scsi_cmnd *);
int command_abort(struct scsi_cmnd *srb); int command_abort(struct scsi_cmnd *srb);
int device_reset(struct scsi_cmnd *srb);
int bus_reset(struct scsi_cmnd *srb); int bus_reset(struct scsi_cmnd *srb);
#endif /* __RTS51X_SCSI_H */ #endif /* __RTS51X_SCSI_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册