Skip to contentSkip to conversation

NFS: Clean up errors in nfs_page.h

PATCH In review [email protected] 2 participants 2 messages Oct 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: Clean up errors in nfs_page.h

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxO)

---
 include/linux/nfs_page.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/nfs_page.h +1 -1
index 1c315f854ea8..6a3c54bd2c40 100644
@@ -122,7 +122,7 @@ struct nfs_pageio_descriptor {
 /* arbitrarily selected limit to number of mirrors */
 #define NFS_PAGEIO_DESCRIPTOR_MIRROR_MAX 16
 
-#define NFS_WBACK_BUSY(req)	(test_bit(PG_BUSY,&(req)->wb_flags))
+#define NFS_WBACK_BUSY(req)	(test_bit(PG_BUSY, &(req)->wb_flags))
 
 extern struct nfs_page *nfs_page_create_from_page(struct nfs_open_context *ctx,
 						  struct page *page,
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 14 lines · On Fri, 2023-10-13 at 11:12 +0800, [email protected] wrote:

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxO)

---
 include/linux/nfs_page.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/nfs_page.h +0 -0
index 1c315f854ea8..6a3c54bd2c40 100644

include/linux/nfs_page.h struct nfs_pageio_descriptor { · line 128

Quoted 8 lines
include/linux/nfs_page.h +1 -1
@@ -122,7 +122,7 @@ struct nfs_pageio_descriptor {
 /* arbitrarily selected limit to number of mirrors */
 #define NFS_PAGEIO_DESCRIPTOR_MIRROR_MAX 16
 
-#define NFS_WBACK_BUSY(req)	(test_bit(PG_BUSY,&(req)->wb_flags))
+#define NFS_WBACK_BUSY(req)	(test_bit(PG_BUSY, &(req)->wb_flags))
 
 extern struct nfs_page *nfs_page_create_from_page(struct nfs_open_context *ctx,
 						  struct page *page,

In general, we don't usually take patches that just clean up whitespace damage or stylistic problems. Doing so makes backporting harder as you end up having to pull in extra patches to fix up minor differences before bringing in substantive patches.

If you're fixing a real bug in the same area, then sure, go ahead and fix up the style in the surrounding code, but if these patches don't fix real bugs then I'd suggest not taking them.

Signature · 1 line
Jeff Layton <[email protected]>