Message ID | 87bee5805ca11e64045e05210f8afdcf895a89c8.1720056514.git.mengfanhui@kylinos.cn |
---|---|
State | New |
Headers | show |
Series | scsi: add megasas_dcmd_timeout helper | expand |
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;