|
@@ -687,7 +687,7 @@ static int name##_single_open(cfs_inode_t *inode, struct file *file) \
|
|
|
{ \
|
|
|
return single_open(file, name##_seq_show, PDE_DATA(inode)); \
|
|
|
} \
|
|
|
-struct file_operations name##_fops = { \
|
|
|
+static struct file_operations name##_fops = { \
|
|
|
.owner = THIS_MODULE, \
|
|
|
.open = name##_single_open, \
|
|
|
.read = seq_read, \
|
|
@@ -730,7 +730,7 @@ struct file_operations name##_fops = { \
|
|
|
{ \
|
|
|
return single_open(file, NULL, PDE_DATA(inode)); \
|
|
|
} \
|
|
|
- struct file_operations name##_##type##_fops = { \
|
|
|
+ static struct file_operations name##_##type##_fops = { \
|
|
|
.open = name##_##type##_open, \
|
|
|
.write = name##_##type##_write, \
|
|
|
.release = lprocfs_single_release, \
|