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: 728001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B728AE80ABF for ; Thu, 28 Sep 2023 01:49:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229737AbjI1BtN (ORCPT ); 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= Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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 */