From: Xiang wangx <wangxiang@cdjrlc.com>
To: jejb@linux.ibm.com
Cc: martin.petersen@oracle.com, james.smart@broadcom.com,
dick.kennedy@broadcom.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org, Xiang wangx <wangxiang@cdjrlc.com>
Subject: [PATCH] scsi: lpfc: Fix warning in using sizeof
Date: Mon, 30 May 2022 10:25:23 +0800 [thread overview]
Message-ID: <20220530022523.21402-1-wangxiang@cdjrlc.com> (raw)
Sizeof fc_host_symbolic_name should be sizeof(fc_host_symbolic_name).
Signed-off-by: Xiang wangx <wangxiang@cdjrlc.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
reply other threads:[~2022-05-30 2:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220530022523.21402-1-wangxiang@cdjrlc.com \
--to=wangxiang@cdjrlc.com \
--cc=dick.kennedy@broadcom.com \
--cc=james.smart@broadcom.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®