Staging: lustre: Add blank line after declarations
PATCH 1/1 Staging: lustre: Add blank line after declarations
The following patch fixes the checkpatch.pl warning:drivers/staging/lustre/lustre/osc/lproc_osc.c WARNING: Missing a blank line after declarations
--- drivers/staging/lustre/lustre/osc/lproc_osc.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/staging/lustre/lustre/osc/lproc_osc.c +6 -0
@@ -345,6 +345,7 @@ static int osc_checksum_type_seq_show(struct seq_file *m, void *v) {struct obd_device *obd = m->private;int i; +DECLARE_CKSUM_NAME ;if (obd ==NULL )
@@ -367,6 +368,7 @@ static ssize_t osc_checksum_type_seq_write(struct file *file, const char *buffer {struct obd_device *obd = ((struct seq_file *)file->private_data)->private;int i; +DECLARE_CKSUM_NAME ;char kernbuf[10 ];
@@ -461,6 +463,7 @@ LPROC_SEQ_FOPS(osc_lockless_truncate);static int osc_destroys_in_flight_seq_show (struct seq_file *m,void *v) {struct obd_device *obd = m->private; +return seq_printf (m,"%u\n" ,atomic_read (&obd->u.cli.cl_destroy_in_flight)); }
@@ -602,6 +605,7 @@ static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)for (i =0 ; i <OBD_HIST_MAX ; i++) {unsigned long r = cli->cl_read_page_hist.oh_buckets[i];unsigned long w = cli->cl_write_page_hist.oh_buckets[i]; + read_cum += r; write_cum += w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n",
@@ -625,6 +629,7 @@ static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)for (i =0 ; i <OBD_HIST_MAX ; i++) {unsigned long r = cli->cl_read_rpc_hist.oh_buckets[i];unsigned long w = cli->cl_write_rpc_hist.oh_buckets[i]; + read_cum += r; write_cum += w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n",
@@ -648,6 +653,7 @@ static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)for (i =0 ; i <OBD_HIST_MAX ; i++) {unsigned long r = cli->cl_read_offset_hist.oh_buckets[i];unsigned long w = cli->cl_write_offset_hist.oh_buckets[i]; + read_cum += r; write_cum += w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n",
Signature · 1 line
1.9.1
Quoted 14 lines · Hatice ERTÜRK
The following patch fixes the checkpatch.pl warning:
drivers/staging/lustre/lustre/osc/lproc_osc.cWARNING: Missing a blank line after declarationsSigned-off-by Hatice ERTÜRK <[email protected]>--- drivers/staging/lustre/lustre/osc/lproc_osc.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/staging/lustre/lustre/osc/lproc_osc.c +0
-0
drivers/staging/lustre/lustre/osc/lproc_osc.c static int osc_checksum_type_seq_show(struct seq_file *m, void *v) · line 349
Quoted 5 lines
drivers/staging/lustre/lustre/osc/lproc_osc.c +1
-0@@ -345,6 +345,7 @@ static int osc_checksum_type_seq_show(struct seq_file *m, void *v) {struct obd_device *obd = m->private;int i; +DECLARE_CKSUM_NAME ;
The above line is probably a declaration too, so the blank line would not be appropriate.
julia
Quoted 52 lines
drivers/staging/lustre/lustre/osc/lproc_osc.c +5
-1if (obd ==NULL )@@ -367,6 +368,7 @@ static ssize_t osc_checksum_type_seq_write(struct file *file, const char *buffer {struct obd_device *obd = ((struct seq_file *)file->private_data)->private;int i; +DECLARE_CKSUM_NAME ;char kernbuf[10 ];@@ -461,6 +463,7 @@ LPROC_SEQ_FOPS(osc_lockless_truncate);static int osc_destroys_in_flight_seq_show (struct seq_file *m,void *v) {struct obd_device *obd = m->private; +return seq_printf (m,"%u\n" ,atomic_read (&obd->u.cli.cl_destroy_in_flight)); }@@ -602,6 +605,7 @@ static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)for (i =0 ; i <OBD_HIST_MAX ; i++) {unsigned long r = cli->cl_read_page_hist.oh_buckets[i];unsigned long w = cli->cl_write_page_hist.oh_buckets[i]; + read_cum += r; write_cum += w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n",@@ -625,6 +629,7 @@ static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)for (i =0 ; i <OBD_HIST_MAX ; i++) {unsigned long r = cli->cl_read_rpc_hist.oh_buckets[i];unsigned long w = cli->cl_write_rpc_hist.oh_buckets[i]; + read_cum += r; write_cum += w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n",@@ -648,6 +653,7 @@ static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)for (i =0 ; i <OBD_HIST_MAX ; i++) {unsigned long r = cli->cl_read_offset_hist.oh_buckets[i];unsigned long w = cli->cl_write_offset_hist.oh_buckets[i]; + read_cum += r; write_cum += w; seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1425041831-15572-1-git-send-email-haticeerturk27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.