scsi: gdth: Make __gdth_execute static
PATCH 1/1 scsi: gdth: Make __gdth_execute static
Fix sparse warning:
drivers/scsi/gdth.c:332:5: warning:
symbol '__gdth_execute' was not declared. Should it be static?
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wang Hai <[email protected]>
--- drivers/scsi/gdth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/gdth.c +2 -2
@@ -329,8 +329,8 @@ static void gdth_scsi_done(struct scsi_cmnd *scp) scp->scsi_done (scp); } -int __gdth_execute (struct scsi_device *sdev,gdth_cmd_str *gdtcmd,char *cmnd, -int timeout,u32 *info) +static int __gdth_execute (struct scsi_device *sdev,gdth_cmd_str *gdtcmd, +char *cmnd,int timeout,u32 *info) {gdth_ha_str *ha =shost_priv (sdev->host);struct scsi_cmnd *scp;
Signature · 1 line
1.8.3.1
Martin K. Petersen
AppliedWang,
Quoted 4 lines
Fix sparse warning:
drivers/scsi/gdth.c:332:5: warning:
symbol '__gdth_execute' was not declared. Should it be static?
Applied to 5.8/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering