Commit 78e8df28 authored by Wang Hai's avatar Wang Hai Committed by Martin K. Petersen
Browse files

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?

Link: https://lore.kernel.org/r/1586276474-34480-1-git-send-email-wanghai38@huawei.com


Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d221aed1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;