[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220530022523.21402-1-wangxiang@cdjrlc.com>
Date: Mon, 30 May 2022 10:25:23 +0800
From: Xiang wangx <wangxiang@...rlc.com>
To: jejb@...ux.ibm.com
Cc: martin.petersen@...cle.com, james.smart@...adcom.com,
dick.kennedy@...adcom.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, Xiang wangx <wangxiang@...rlc.com>
Subject: [PATCH] scsi: lpfc: Fix warning in using sizeof
Sizeof fc_host_symbolic_name should be sizeof(fc_host_symbolic_name).
Signed-off-by: Xiang wangx <wangxiang@...rlc.com>
---
drivers/scsi/lpfc/lpfc_attr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index dd4c51b6ef4e..7d0c3aa0ae5e 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -6822,7 +6822,7 @@ lpfc_get_host_symbolic_name(struct Scsi_Host *shost)
struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
- sizeof fc_host_symbolic_name(shost));
+ sizeof(fc_host_symbolic_name(shost)));
}
/**
--
2.36.1
Powered by blists - more mailing lists