Skip to contentSkip to conversation

staging: lustre: Make struct mdc_kuc_fops static

PATCH New Dzmitry Sledneu 1 participant 1 message Apr 18, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: Make struct mdc_kuc_fops static

This patch fixes the following Sparse warning:
"symbol 'mdc_kuc_fops' was not declared. Should it be static?".

---
 drivers/staging/lustre/lustre/mdc/lproc_mdc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/mdc/lproc_mdc.c +1 -1
index acfe08e..b41e50e 100644
@@ -147,7 +147,7 @@ static ssize_t mdc_kuc_write(struct file *file,
 	return count;
 }
 
-struct file_operations mdc_kuc_fops = {
+static struct file_operations mdc_kuc_fops = {
 	.open		= mdc_kuc_open,
 	.write		= mdc_kuc_write,
 	.release	= single_release,
Signature · 1 line
2.3.5