From patchwork Thu Sep 28 01:47:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3014461vqu; Wed, 27 Sep 2023 18:49:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfvUZPTGXeWAnTtl7tQJy/IV/yKehbRgTHyZum/AbmraHX1Dd8i1gKSQVCUFr1GECmILZd X-Received: by 2002:a05:6a21:4987:b0:14d:f087:c0c7 with SMTP id ax7-20020a056a21498700b0014df087c0c7mr3052170pzc.58.1695865768994; Wed, 27 Sep 2023 18:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695865768; cv=none; d=google.com; s=arc-20160816; b=yXLFwnnV5f14vCwTHxqdp71XLO3XSJBDsTgMUKoZSMDxwHqM1MlCYmTC3DQD4Ji21Q n4a8JiWXxWa7MIFsIvUXpMgwMqb5TpXf7HRmPckqTc2tSH43gFdFXa66OudwOQu/72pa IoPJ+BgbZCfCwV4g7RmQX6XGA29dF5cHTOqZxTL0RnbwzfIHkysye0Mk4RuPxv9oSsMP MPqUmWOPxyuzcd5Vv15yon8sb5o2uMxFjucJh5iMvFLXY3H6kKVdacLOU4/TMoY7wFkG hyJEgvv+G4RylDvK8ISl121xZMIaaUgN7xjTLt+wNXAH0Zf5Qs2qHlWP46/6AkOULmE5 nbqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=Cxfl8sJSplN/W7z/I9LcmQs/etDML723rOy9BpgZRiM=; fh=VWQ33Zfx/zv3LrpWUzhvz8BPpat9sHuLywepBQEIwvg=; b=hnNAyxMLzW/rqHLXSmgnx9/H9P4tjMzaitca1y7X739vfVLvszN5WpTUzzbAgInGRY IFCpxs6pnZzusxqA1dI0hZjOgmm1+3O4FBXux9jAZyLsri1MaemAoMV0OstniDb5uza+ IitstMpvcJ38fctIF6Vn4v4ydq7YDdm3AiFaM/5sq4FHrlfdxCGdAzhF6lIhqxzn9PE2 yOHui7OPDSgQrTMEgX0s+J3gJSmnBeMGwSApUwJi/xXnMs9qtfjt+eZPreDC2FwYM9uO V3Xc3+DA8WogoyS2heDk43D28BLRwXDyP0eFvY9fQR5VwudjkVqwFqICs1aZVyKh0ywI RXFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id lb14-20020a170902fa4e00b001c4743e4a60si16383748plb.197.2023.09.27.18.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 18:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DBF90832E35D; Wed, 27 Sep 2023 18:49:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbjI1BtN (ORCPT + 20 others); Wed, 27 Sep 2023 21:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1BtM (ORCPT ); Wed, 27 Sep 2023 21:49:12 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D7E5B3; Wed, 27 Sep 2023 18:49:10 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 09:47:39 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 09:47:39 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: james.smart@broadcom.com, dick.kennedy@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: lpfc: Clean up errors in lpfc_compat.h X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <3a564508.897.18ad97860cb.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDnhD872xRl73a+AA--.589W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAJB2T8PZMAAQAPs3 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 18:49:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778244144713153304 X-GMAIL-MSGID: 1778244144713153304 Fix the following errors reported by checkpatch: ERROR: need consistent spacing around '/' (ctx:WxV) ERROR: space prohibited after that open parenthesis '(' Signed-off-by: GuoHua Cheng --- drivers/scsi/lpfc/lpfc_compat.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_compat.h b/drivers/scsi/lpfc/lpfc_compat.h index 43cf46a3a71f..4c4f6ba4f813 100644 --- a/drivers/scsi/lpfc/lpfc_compat.h +++ b/drivers/scsi/lpfc/lpfc_compat.h @@ -48,8 +48,8 @@ lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) src32 = (uint32_t *) src; /* write input bytes, 4 bytes at a time */ - for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { - writel( *src32, dest32); + for (four_bytes = bytes / 4; four_bytes > 0; four_bytes--) { + writel(*src32, dest32); readl(dest32); /* flush */ dest32++; src32++; @@ -59,7 +59,7 @@ lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) } static inline void -lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) +lpfc_memcpy_from_slim(void *dest, void __iomem *src, unsigned int bytes) { uint32_t *dest32; uint32_t __iomem *src32; @@ -70,8 +70,8 @@ lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) src32 = (uint32_t __iomem *) src; /* read input bytes, 4 bytes at a time */ - for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { - *dest32 = readl( src32); + for (four_bytes = bytes / 4; four_bytes > 0; four_bytes--) { + *dest32 = readl(src32); dest32++; src32++; } @@ -82,17 +82,17 @@ lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) #else static inline void -lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) +lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) { /* convert bytes in argument list to word count for copy function */ __iowrite32_copy(dest, src, bytes / sizeof(uint32_t)); } static inline void -lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) +lpfc_memcpy_from_slim(void *dest, void __iomem *src, unsigned int bytes) { /* actually returns 1 byte past dest */ - memcpy_fromio( dest, src, bytes); + memcpy_fromio(dest, src, bytes); } #endif /* __BIG_ENDIAN */