diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-11 17:55:39 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-01-17 07:02:14 +0100 |
commit | 61dfb8a5fb7e93e692856026fa4c778a27f28984 (patch) | |
tree | 49f0006f23ea72a74ba6070a039c7c7868599d83 /drivers/scsi | |
parent | scsi: hisi_sas: make local symbol host_attrs static (diff) | |
download | linux-61dfb8a5fb7e93e692856026fa4c778a27f28984.tar.xz linux-61dfb8a5fb7e93e692856026fa4c778a27f28984.zip |
scsi: mpt3sas: make function _get_st_from_smid static
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 <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/mpt3sas/mpt3sas_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index a44b9be6e3c5..13d6e4ec3022 100644 --- 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 * +static struct scsiio_tracker * _get_st_from_smid(struct MPT3SAS_ADAPTER *ioc, u16 smid) { struct scsi_cmnd *cmd; |