diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmdebug.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmdebug.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c index df52f706f669..42b0bad7a612 100644 --- a/fs/ocfs2/dlm/dlmdebug.c +++ b/fs/ocfs2/dlm/dlmdebug.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/types.h> | 27 | #include <linux/types.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/highmem.h> | 29 | #include <linux/highmem.h> |
30 | #include <linux/utsname.h> | ||
31 | #include <linux/sysctl.h> | 30 | #include <linux/sysctl.h> |
32 | #include <linux/spinlock.h> | 31 | #include <linux/spinlock.h> |
33 | #include <linux/debugfs.h> | 32 | #include <linux/debugfs.h> |
@@ -479,7 +478,7 @@ bail: | |||
479 | return -ENOMEM; | 478 | return -ENOMEM; |
480 | } | 479 | } |
481 | 480 | ||
482 | static struct file_operations debug_purgelist_fops = { | 481 | static const struct file_operations debug_purgelist_fops = { |
483 | .open = debug_purgelist_open, | 482 | .open = debug_purgelist_open, |
484 | .release = debug_buffer_release, | 483 | .release = debug_buffer_release, |
485 | .read = debug_buffer_read, | 484 | .read = debug_buffer_read, |
@@ -539,7 +538,7 @@ bail: | |||
539 | return -ENOMEM; | 538 | return -ENOMEM; |
540 | } | 539 | } |
541 | 540 | ||
542 | static struct file_operations debug_mle_fops = { | 541 | static const struct file_operations debug_mle_fops = { |
543 | .open = debug_mle_open, | 542 | .open = debug_mle_open, |
544 | .release = debug_buffer_release, | 543 | .release = debug_buffer_release, |
545 | .read = debug_buffer_read, | 544 | .read = debug_buffer_read, |
@@ -683,7 +682,7 @@ static int lockres_seq_show(struct seq_file *s, void *v) | |||
683 | return 0; | 682 | return 0; |
684 | } | 683 | } |
685 | 684 | ||
686 | static struct seq_operations debug_lockres_ops = { | 685 | static const struct seq_operations debug_lockres_ops = { |
687 | .start = lockres_seq_start, | 686 | .start = lockres_seq_start, |
688 | .stop = lockres_seq_stop, | 687 | .stop = lockres_seq_stop, |
689 | .next = lockres_seq_next, | 688 | .next = lockres_seq_next, |
@@ -742,7 +741,7 @@ static int debug_lockres_release(struct inode *inode, struct file *file) | |||
742 | return seq_release_private(inode, file); | 741 | return seq_release_private(inode, file); |
743 | } | 742 | } |
744 | 743 | ||
745 | static struct file_operations debug_lockres_fops = { | 744 | static const struct file_operations debug_lockres_fops = { |
746 | .open = debug_lockres_open, | 745 | .open = debug_lockres_open, |
747 | .release = debug_lockres_release, | 746 | .release = debug_lockres_release, |
748 | .read = seq_read, | 747 | .read = seq_read, |
@@ -926,7 +925,7 @@ bail: | |||
926 | return -ENOMEM; | 925 | return -ENOMEM; |
927 | } | 926 | } |
928 | 927 | ||
929 | static struct file_operations debug_state_fops = { | 928 | static const struct file_operations debug_state_fops = { |
930 | .open = debug_state_open, | 929 | .open = debug_state_open, |
931 | .release = debug_buffer_release, | 930 | .release = debug_buffer_release, |
932 | .read = debug_buffer_read, | 931 | .read = debug_buffer_read, |