Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4388613ioo; Tue, 31 May 2022 03:23:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwHLwKrs6d6INmokArs2HjPTMn+t4WPBWsmKqrI4kTNhb89Pu4kL52S86MDRrcFWKSlMGN X-Received: by 2002:a17:90b:1651:b0:1e3:4470:7414 with SMTP id il17-20020a17090b165100b001e344707414mr1472918pjb.204.1653992628422; Tue, 31 May 2022 03:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653992628; cv=none; d=google.com; s=arc-20160816; b=VygpEmSDG8jj+kEQnCkKEtdaA4mY9iBXxpbthrdsqzzDHTt5s4pKbU5hPVAfM/dOWY AOd67KhtFg1VotlZ60Samp8YtazGycApsfVwKjK03C2bO3Zdy6CWzfAN1EO5z5mLi8+x msJKwhsp2oEGrCFNCmNmQeLbc+Xta8b2G9byEcgKM4mhxO+AsRbja0I+aebnKJI3CqZK iq1jnMfhwIgYZXG4KQovMx36T08dwFoGNpmVcOG6STA56puXQ0XsAlpL0s4mVQYxbSVx 2jQnXIAb3AKWKcP3AmWBc0kE6xeIb3m+Yoa5OQMhydA+YGrLluiDbYe/w0VETJsDyLFr qtbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=QMyNzfJOyN7lYzm/QEvH/2paK39rg0U2b7kz0GuKTL8=; b=eK66EQkyPZP8ZkkVM5BMH8ZwwTVYLzhAiQNzyUV+NDXofT99GCA+BmpLBhNYf6y+0U qlscROYqUWTUEkV702XE/T+IT5TO2kmdXduPMFUKylb1PkJ0fdrlEFH6MwwrQ93s26jr a7KAfaImrQ/uRa4TWCLk3sQi6GfM0+o32U2+W2a3xahvO83HVx/b8b7yLvt6oDcD6qSw LoQXeDopCs0bWPqujG14va3hqrbUWGR5Pt08mjDeUFwctc8+G6zj/PPRIvJad9KOQCHp 0M7eQUIeyjKu2vMDuejhh1Lwovh46xcYGfZ1BJCSZLSza+wRzcRlXZFqQORhAUE34g/l O9Bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a170903100400b0015d0db0168csi4645590plb.364.2022.05.31.03.23.35; Tue, 31 May 2022 03:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232239AbiE3C1J (ORCPT + 99 others); Sun, 29 May 2022 22:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230488AbiE3C1H (ORCPT ); Sun, 29 May 2022 22:27:07 -0400 Received: from smtpbg.qq.com (smtpbg136.qq.com [106.55.201.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05F426362; Sun, 29 May 2022 19:27:01 -0700 (PDT) X-QQ-mid: bizesmtp81t1653877550tla6dmdm Received: from localhost.localdomain ( [125.70.163.149]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 30 May 2022 10:25:29 +0800 (CST) X-QQ-SSF: 01000000000000B0G000000A0000000 X-QQ-FEAT: 5wH7dOxX7oR+WXYlG5sJme5jIR7Dy0nt12sqSwKbXTeKaacCe1o+hwWb/90rH kzXdQ7Ah0BU6Rdn2/uHj1CzdnHdkKDLmVVo8C/55Zppy9Od5Ifmedml4vJM17pCmc82vz94 PFSm8kT1Gbg9T4j7D3PVrnWqJYk8Dmdr+cOTSO8nJTCV84xREm2nnZDVEAVwFetiUNun+Ze b4fMi0+E6nbQzOEzB8d0HgD/XA1z800DoInSRH/1AeXzBj5ARaQx2EFDOOUoaQDqcrTezi0 KsLCnHY1vVKKzjS50q4vdsGljriFMYGnY1aTMOYRqylTxfz98fcGilKn1Qk672bpL90+CjX gMH3TSi X-QQ-GoodBg: 0 From: Xiang wangx 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 Subject: [PATCH] scsi: lpfc: Fix warning in using sizeof Date: Mon, 30 May 2022 10:25:23 +0800 Message-Id: <20220530022523.21402-1-wangxiang@cdjrlc.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sizeof fc_host_symbolic_name should be sizeof(fc_host_symbolic_name). Signed-off-by: Xiang wangx --- 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