[PATCH 0/3]
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
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
@@ -143,7 +143,7 @@ cleanup:ptlrpc_hr_fini ();req_layout_fini ();/* Fall through */ -default : ; +break ; }return rc;
Signature · 1 line
1.8.3.2
Greg KH
maintainerRe: [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 checkpatchSigned-off-by Melike Yurtoglu <[email protected]>--- 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@@ -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
PATCH 2/3 Staging: lustre: Deleted space prohibited between function name and open parenthesis
In reply to Melike YurtogluWARNING: 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
@@ -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
PATCH 3/3 Staging: lustre: Remove spaces at the start of a line
In reply to Melike YurtogluWARNING: 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
@@ -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
Greg KH
maintainerRe: [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.Signed-off-by Melike Yurtoglu <[email protected]>--- 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
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