diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-06 03:44:55 +0100 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-06 03:46:40 +0100 |
commit | 5e2336a0d47c9661a40cc5ef85135ce1406af6e8 (patch) | |
tree | 6d977e4471f8e31245602a26e939368689d2383a /kernel/trace/trace_sysprof.c | |
parent | tracing: add tracing_on/tracing_off to kernel.h (diff) | |
download | linux-5e2336a0d47c9661a40cc5ef85135ce1406af6e8.tar.xz linux-5e2336a0d47c9661a40cc5ef85135ce1406af6e8.zip |
tracing: make all file_operations const
Impact: cleanup
All file_operations structures should be constant. No one is going to
change them.
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace_sysprof.c')
-rw-r--r-- | kernel/trace/trace_sysprof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_sysprof.c b/kernel/trace/trace_sysprof.c index c771af4e8f1a..91fd19c2149f 100644 --- a/kernel/trace/trace_sysprof.c +++ b/kernel/trace/trace_sysprof.c @@ -314,7 +314,7 @@ sysprof_sample_write(struct file *filp, const char __user *ubuf, return cnt; } -static struct file_operations sysprof_sample_fops = { +static const struct file_operations sysprof_sample_fops = { .read = sysprof_sample_read, .write = sysprof_sample_write, }; |