[<prev] [next>] [day] [month] [year] [list]
Message-ID: <3a564508.897.18ad97860cb.Coremail.wangkailong@jari.cn>
Date: Thu, 28 Sep 2023 09:47:39 +0800 (GMT+08:00)
From: "KaiLong Wang" <wangkailong@...i.cn>
To: james.smart@...adcom.com, dick.kennedy@...adcom.com,
jejb@...ux.ibm.com, martin.petersen@...cle.com
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: lpfc: Clean up errors in lpfc_compat.h
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 <chenguohua@...i.cn>
---
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 */
--
2.17.1
Powered by blists - more mailing lists