Skip to contentSkip to conversation

fasync: Use tabs instead of spaces in code indent

PATCH In review Wen Gu 2 participants 3 messages Nov 10, 2021

Subsystems (2)
lore
Share & tools
lore

Wen Gu

author
#0 lore raw

PATCH 1/1 fasync: Use tabs instead of spaces in code indent

When I investigated about fasync_list in SMC network subsystem, I happened to find that here uses spaces instead of tabs in code indent and fix this by the way.

Fixes f7347ce4ee7c ("fasync: re-organize fasync entry insertion to

allow it under a spinlock")

---
 fs/fcntl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fcntl.c +1 -1
index 9c6c6a3..36ba188 100644
@@ -927,7 +927,7 @@ void fasync_free(struct fasync_struct *new)
  */
 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
 {
-        struct fasync_struct *fa, **fp;
+	struct fasync_struct *fa, **fp;
 
 	spin_lock(&filp->f_lock);
 	spin_lock(&fasync_lock);
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw
Quoted 17 lines · Wen Gu

When I investigated about fasync_list in SMC network subsystem, I happened to find that here uses spaces instead of tabs in code indent and fix this by the way.

Fixes f7347ce4ee7c ("fasync: re-organize fasync entry insertion to

allow it under a spinlock")

---
 fs/fcntl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fcntl.c +0 -0
index 9c6c6a3..36ba188 100644

fs/fcntl.c void fasync_free(struct fasync_struct *new) · line 933

Quoted 8 lines
fs/fcntl.c +1 -1
@@ -927,7 +927,7 @@ void fasync_free(struct fasync_struct *new)
  */
 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
 {
-        struct fasync_struct *fa, **fp;
+	struct fasync_struct *fa, **fp;
 
 	spin_lock(&filp->f_lock);
 	spin_lock(&fasync_lock);

Hi Wen,

I usually don't take patches that just fix whitespace like this. The reason is that these sorts of patches tend to make backporting difficult as they introduce merge conflicts for no good reason.

When you're making substantial changes in an area, then please do go ahead and fix up whitespace in the same area, but patches that just fix up whitespace are more trouble than they are worth.

Sorry,

Signature · 1 line
Jeff Layton <[email protected]>
author
#2 lore raw
Quoted 33 lines · Jeff Layton
Quoted 17 lines · Wen Gu

When I investigated about fasync_list in SMC network subsystem, I happened to find that here uses spaces instead of tabs in code indent and fix this by the way.

Fixes f7347ce4ee7c ("fasync: re-organize fasync entry insertion to

allow it under a spinlock")

---
  fs/fcntl.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
fs/fcntl.c +0 -0
index 9c6c6a3..36ba188 100644

fs/fcntl.c void fasync_free(struct fasync_struct *new) · line 933

Quoted 8 lines
fs/fcntl.c +1 -1
@@ -927,7 +927,7 @@ void fasync_free(struct fasync_struct *new)
   */
  struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
  {
-        struct fasync_struct *fa, **fp;
+	struct fasync_struct *fa, **fp;
 
  	spin_lock(&filp->f_lock);
  	spin_lock(&fasync_lock);

Hi Wen,

I usually don't take patches that just fix whitespace like this. The reason is that these sorts of patches tend to make backporting difficult as they introduce merge conflicts for no good reason.

Quoted 6 lines

When you're making substantial changes in an area, then please do go ahead and fix up whitespace in the same area, but patches that just fix up whitespace are more trouble than they are worth.

Sorry,

Thank you for the reminding. I didn't realize my unintentional action would bring trouble to the backport. I will keep this in mind.

Thanks,
Wen Gu