Skip to contentSkip to conversation

[PATCH 0/3]

PATCH In review Melike Yurtoglu 2 participants 6 messages Feb 27, 2015 – Mar 2, 2015 Staging

lore
Share & tools
lore
#0 lore raw

cover [PATCH 0/3]

This patchset default used instead of break and delete space.

Melike Yurtoglu (3):
Staging: lustre: default used instead of break
Staging: lustre: Deleted space prohibited between function name and
open parenthesis
Staging: lustre: Remove spaces at the start of a line

 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 6 +++---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/3 Staging: lustre: default used instead of break

WARNING: switch default: should use break.
That was found by running checkpatch

---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c +1 -1
index 5268887..44f4e27 100644
@@ -143,7 +143,7 @@ cleanup:
 		ptlrpc_hr_fini();
 		req_layout_fini();
 		/* Fall through */
-	default: ;
+	break;
 	}
 
 	return rc;
Signature · 1 line
1.8.3.2
maintainer
#2 lore raw

Re: [Outreachy kernel] [PATCH 1/3] Staging: lustre: default used instead of break

Quoted 23 lines · Melike Yurtoglu

WARNING: switch default: should use break.
That was found by running checkpatch

---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c +1 -1
index 5268887..44f4e27 100644
@@ -143,7 +143,7 @@ cleanup:
 		ptlrpc_hr_fini();
 		req_layout_fini();
 		/* Fall through */
-	default: ;
+	break;
 	}
 
 	return rc;
Signature · 1 line
1.8.3.2

Didn't you already send this? What changed from the previous version that caused a resend?

thanks,

greg k-h

#3 lore raw

PATCH 2/3 Staging: lustre: Deleted space prohibited between function name and open parenthesis

In reply to Melike Yurtoglu

WARNING: space prohibited between function name and open parenthesis '(' Remove unnecessary space between function name and opening parenthesis. That was found by running checkpatch

---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h +2 -2
index 7fe2e58..a66dc3c 100644
@@ -76,7 +76,7 @@ void ptlrpc_initiate_recovery(struct obd_import *imp);
 int lustre_unpack_req_ptlrpc_body(struct ptlrpc_request *req, int offset);
 int lustre_unpack_rep_ptlrpc_body(struct ptlrpc_request *req, int offset);
 
-#if defined (CONFIG_PROC_FS)
+#if defined(CONFIG_PROC_FS)
 void ptlrpc_lprocfs_register_service(struct proc_dir_entry *proc_entry,
 				     struct ptlrpc_service *svc);
 void ptlrpc_lprocfs_unregister_service(struct ptlrpc_service *svc);
@@ -263,7 +263,7 @@ void sptlrpc_enc_pool_fini(void);
 int sptlrpc_proc_enc_pool_seq_show(struct seq_file *m, void *v);
 
 /* sec_lproc.c */
-#if defined (CONFIG_PROC_FS)
+#if defined(CONFIG_PROC_FS)
 int  sptlrpc_lproc_init(void);
 void sptlrpc_lproc_fini(void);
 #else
Signature · 1 line
1.8.3.2
#4 lore raw

PATCH 3/3 Staging: lustre: Remove spaces at the start of a line

In reply to Melike Yurtoglu

WARNING: please, no spaces at the start of a line
That was found by running checkpatch.

---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h +1 -1
index a66dc3c..d28ce28 100644
@@ -222,7 +222,7 @@ struct ptlrpc_nrs_policy *nrs_request_policy(struct ptlrpc_nrs_request *nrq)
  * a separating space character.
  */
 #define LPROCFS_NRS_WR_QUANTUM_MAX_CMD					       \
- sizeof(NRS_LPROCFS_QUANTUM_NAME_REG __stringify(LPROCFS_NRS_QUANTUM_MAX) " "  \
+sizeof(NRS_LPROCFS_QUANTUM_NAME_REG __stringify(LPROCFS_NRS_QUANTUM_MAX) " "  \
 	NRS_LPROCFS_QUANTUM_NAME_HP __stringify(LPROCFS_NRS_QUANTUM_MAX))
 
 /* recovd_thread.c */
Signature · 1 line
1.8.3.2
maintainer
#5 lore raw

Re: [Outreachy kernel] [PATCH 3/3] Staging: lustre: Remove spaces at the start of a line

Quoted 13 lines · Melike Yurtoglu

WARNING: please, no spaces at the start of a line
That was found by running checkpatch.

---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h +0 -0
index a66dc3c..d28ce28 100644

drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h struct ptlrpc_nrs_policy *nrs_request_policy(struct ptlrpc_nrs_request *nrq) · line 225

Quoted 5 lines
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h +1 -1
@@ -222,7 +222,7 @@ struct ptlrpc_nrs_policy *nrs_request_policy(struct ptlrpc_nrs_request *nrq)
  * a separating space character.
  */
 #define LPROCFS_NRS_WR_QUANTUM_MAX_CMD					       \
- sizeof(NRS_LPROCFS_QUANTUM_NAME_REG __stringify(LPROCFS_NRS_QUANTUM_MAX) " "  \
+sizeof(NRS_LPROCFS_QUANTUM_NAME_REG __stringify(LPROCFS_NRS_QUANTUM_MAX) " "  \

No the space is right, but it really should be a tab.

Deleting it is incorrect, sorry.

greg k-h