diff mbox series

[scsi-next,v2,2/2] scsi: megaraid_sas: make dcmd_timeout_ocr_possible static

Message ID 87bee5805ca11e64045e05210f8afdcf895a89c8.1720056514.git.mengfanhui@kylinos.cn (mailing list archive)
State New, archived
Headers show
Series scsi: add megasas_dcmd_timeout helper | expand

Commit Message

Fanhui Meng July 4, 2024, 1:40 a.m. UTC
dcmd_timeout_ocr_possible is only used in megaraid_sas_base.c, this
patch makes it static. Furthermore, drop the useless "inline" label
too.

Suggested-by: Geliang Tang <geliang@kernel.org>
Co-developed-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Fanhui Meng <mengfanhui@kylinos.cn>
---
 drivers/scsi/megaraid/megaraid_sas_base.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index e6a9cef027c0..c9f6e691128e 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4516,8 +4516,9 @@  int megasas_alloc_cmds(struct megasas_instance *instance)
  * Return 0 for only Fusion adapter, if driver load/unload is not in progress
  * or FW is not under OCR.
  */
-inline int
-dcmd_timeout_ocr_possible(struct megasas_instance *instance) {
+static int
+dcmd_timeout_ocr_possible(struct megasas_instance *instance)
+{
 
 	if (instance->adapter_type == MFI_SERIES)
 		return KILL_ADAPTER;