Skip to contentSkip to conversation

scsi: gdth: Make __gdth_execute static

PATCH Applied Wang Hai 2 participants 2 messages Apr 6, 2020 – Apr 15, 2020 SCSI

lore
Share & tools
lore

Wang Hai

author
#0 lore raw

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?

---
 drivers/scsi/gdth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/gdth.c +2 -2
index fe03410..7f150d5 100644
@@ -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
#1 lore raw

Wang,

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