projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e15fea
)
scsi: mpt3sas: make function _get_st_from_smid static
author
Colin Ian King
<
[email protected]
>
Thu, 11 Jan 2018 16:55:39 +0000
(16:55 +0000)
committer
Martin K. Petersen
<
[email protected]
>
Wed, 17 Jan 2018 06:02:14 +0000
(
01:02
-0500)
The function _get_st_from_smid is local to the source and does not need
to be in global scope, so make it static.
Cleans up sparse warning:
symbol '_get_st_from_smid' was not declared. Should it be static?
Signed-off-by: Colin Ian King <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/mpt3sas/mpt3sas_base.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mpt3sas/mpt3sas_base.c
b/drivers/scsi/mpt3sas/mpt3sas_base.c
index a44b9be6e3c5464ae6e00036df419bde593e550a..13d6e4ec3022cc6c38e5b36496556f5bad998afa 100644
(file)
--- a/
drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/
drivers/scsi/mpt3sas/mpt3sas_base.c
@@
-888,7
+888,7
@@
_base_async_event(struct MPT3SAS_ADAPTER *ioc, u8 msix_index, u32 reply)
return 1;
}
-struct scsiio_tracker *
+st
atic st
ruct scsiio_tracker *
_get_st_from_smid(struct MPT3SAS_ADAPTER *ioc, u16 smid)
{
struct scsi_cmnd *cmd;