Skip to contentSkip to conversation

Fixed an indentation error

PATCH In review Parth Y Shah 3 participants 5 messages Jun 13, 2018 – Jun 14, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed an indentation error

---
 drivers/usb/gadget/configfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +2 -2
index efba66c..0675b4a 100644
@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)
 			list_move_tail(&f->list, &cfg->func_list);
 			if (f->unbind) {
 				dev_dbg(&gi->cdev.gadget->dev,
-				         "unbind function '%s'/%p\n",
-				         f->name, f);
+						"unbind function '%s'/%p\n",
+						f->name, f);
 				f->unbind(c, f);
 			}
 		}
#1 lore raw
Quoted 1 line · Parth Y Shah

-ENOCHANGELOG

Why do you think this is an error?
Why is the dev_dbg useful at all?

drivers/usb/gadget/configfs.c

Quoted 1 line
drivers/usb/gadget/configfs.c +0 -0

[]

drivers/usb/gadget/configfs.c static void purge_configs_funcs(struct gadget_info *gi) · line 1224

Quoted 11 lines
drivers/usb/gadget/configfs.c +2 -2
@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)
 			list_move_tail(&f->list, &cfg->func_list);
 			if (f->unbind) {
 				dev_dbg(&gi->cdev.gadget->dev,
-				         "unbind function '%s'/%p\n",
-				         f->name, f);
+						"unbind function '%s'/%p\n",
+						f->name, f);
 				f->unbind(c, f);
 			}
 		}

---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

PATCH v2 1/1 Fixed a checkpatch error

ERROR: code indent should use tabs where possible

Here, spaces are replaced by a tab in 2 lines.

---
Changes since v1:
* Updated commit description
* Removed one extra tab and replaced spaces with tab to resolve checkpatch error

 drivers/usb/gadget/configfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +2 -2
index efba66c..0251299 100644
@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)
 			list_move_tail(&f->list, &cfg->func_list);
 			if (f->unbind) {
 				dev_dbg(&gi->cdev.gadget->dev,
-				         "unbind function '%s'/%p\n",
-				         f->name, f);
+					"unbind function '%s'/%p\n",
+					f->name, f);
 				f->unbind(c, f);
 			}
 		}
maintainer
#3 lore raw

Re: [PATCH v2] Fixed a checkpatch error

Quoted 5 lines · Parth Y Shah

ERROR: code indent should use tabs where possible

Here, spaces are replaced by a tab in 2 lines.

Your subject line needs work, please see how other subject lines are composed for this subsystem.

Also note, please do not use anything but the drivers/staging/ area of the kernel for beginning "I'm going to do checkpatch cleanups" type of "learning to get changes into the kernel" work. That is a great place to start with this, not in other subsystems where you might have reviewers who do not care so much about whitespace cleanups like this.

So please learn the process there, and when you have it all working well, then you could move on to other subsystems and areas of the kernel, like this one, if you want to.

thanks,

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#4 lore raw
In reply to Parth Y Shah
Quoted 10 lines · Parth Y Shah
---
 drivers/usb/gadget/configfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +0 -0
index efba66c..0675b4a 100644

drivers/usb/gadget/configfs.c static void purge_configs_funcs(struct gadget_info *gi) · line 1221

Quoted 7 lines
drivers/usb/gadget/configfs.c +2 -2
@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)
 			list_move_tail(&f->list, &cfg->func_list);
 			if (f->unbind) {
 				dev_dbg(&gi->cdev.gadget->dev,
-				         "unbind function '%s'/%p\n",
-				         f->name, f);
+						"unbind function '%s'/%p\n",
+						f->name, f);

I see no "error" with the original code here, please explain why this needs to be changed.

thanks,

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html