Skip to contentSkip to conversation

staging: lustre: lustre: fld: lproc_fld.c fixed warning

PATCH New Anil Belur 1 participant 2 messages Jun 19, 2014 Staging

lore
Share & tools
lore

Anil Belur

author
#0 lore raw

PATCH 1/2 staging: lustre: lustre: fld: lproc_fld.c fixed warning

From: Anil Belur <[email protected]>

fixed warning for line over 80 characters by moving the struct init onto a diff line.

---
 drivers/staging/lustre/lustre/fld/lproc_fld.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/lustre/lustre/fld/lproc_fld.c +2 -1
index b6fff2e..01380b6 100644
@@ -91,10 +91,11 @@ static ssize_t
 fld_proc_hash_seq_write(struct file *file, const char *buffer,
 			size_t count, loff_t *off)
 {
-	struct lu_client_fld *fld = ((struct seq_file *)file->private_data)->private;
+	struct lu_client_fld *fld;
 	struct lu_fld_hash *hash = NULL;
 	int i;
 
+	fld = ((struct seq_file *)file->private_data)->private;
 	LASSERT(fld != NULL);
 
 	for (i = 0; fld_hash[i].fh_name != NULL; i++) {
Signature · 1 line
1.9.0
author
#1 lore raw

PATCH 2/2 staging: lustre: lustre: fld: lproc_fld.c fixed warning

From: Anil Belur <[email protected]>

fixed warning "WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable"

---
 drivers/staging/lustre/lustre/fld/fld_request.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/lustre/lustre/fld/fld_request.c +0 -1
index 1f8abba..211430d 100644
@@ -324,7 +324,6 @@ void fld_client_proc_fini(struct lu_client_fld *fld)
 	return;
 }
 #endif
-
 EXPORT_SYMBOL(fld_client_proc_fini);
 
 static inline int hash_is_sane(int hash)
Signature · 1 line
1.9.0