diff mbox series

[-next] scsi: megaraid_sas: Make megasas_host_device_list_query() static

Message ID 20190413142138.33336-1-yuehaibing@huawei.com (mailing list archive)
State Mainlined
Commit 7c3f8ca8e4c8ac180021b1c2a5a1f82a490db7db
Headers show
Series [-next] scsi: megaraid_sas: Make megasas_host_device_list_query() static | expand

Commit Message

Yue Haibing April 13, 2019, 2:21 p.m. UTC
From: YueHaibing <yuehaibing@huawei.com>

Fix sparse warning:

drivers/scsi/megaraid/megaraid_sas_base.c:4652:1: warning:
 symbol 'megasas_host_device_list_query' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen April 16, 2019, 2:20 a.m. UTC | #1
Yue,

> Fix sparse warning:
>
> drivers/scsi/megaraid/megaraid_sas_base.c:4652:1: warning:
>  symbol 'megasas_host_device_list_query' was not declared. Should it be static?

Applied to 5.2/scsi-queue. Thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 59a6546..1ec55ef 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4647,7 +4647,7 @@  megasas_ld_list_query(struct megasas_instance *instance, u8 query_type)
  * Return:			0 if DCMD succeeded
  *				 non-zero if failed
  */
-int
+static int
 megasas_host_device_list_query(struct megasas_instance *instance,
 			       bool is_probe)
 {