diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 5a3a06b21eee..d7a06a0d9447 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1869,21 +1869,21 @@ ftrace_notrace_release(struct inode *inode, struct file *file) | |||
1869 | return ftrace_regex_release(inode, file, 0); | 1869 | return ftrace_regex_release(inode, file, 0); |
1870 | } | 1870 | } |
1871 | 1871 | ||
1872 | static struct file_operations ftrace_avail_fops = { | 1872 | static const struct file_operations ftrace_avail_fops = { |
1873 | .open = ftrace_avail_open, | 1873 | .open = ftrace_avail_open, |
1874 | .read = seq_read, | 1874 | .read = seq_read, |
1875 | .llseek = seq_lseek, | 1875 | .llseek = seq_lseek, |
1876 | .release = ftrace_avail_release, | 1876 | .release = ftrace_avail_release, |
1877 | }; | 1877 | }; |
1878 | 1878 | ||
1879 | static struct file_operations ftrace_failures_fops = { | 1879 | static const struct file_operations ftrace_failures_fops = { |
1880 | .open = ftrace_failures_open, | 1880 | .open = ftrace_failures_open, |
1881 | .read = seq_read, | 1881 | .read = seq_read, |
1882 | .llseek = seq_lseek, | 1882 | .llseek = seq_lseek, |
1883 | .release = ftrace_avail_release, | 1883 | .release = ftrace_avail_release, |
1884 | }; | 1884 | }; |
1885 | 1885 | ||
1886 | static struct file_operations ftrace_filter_fops = { | 1886 | static const struct file_operations ftrace_filter_fops = { |
1887 | .open = ftrace_filter_open, | 1887 | .open = ftrace_filter_open, |
1888 | .read = ftrace_regex_read, | 1888 | .read = ftrace_regex_read, |
1889 | .write = ftrace_filter_write, | 1889 | .write = ftrace_filter_write, |
@@ -1891,7 +1891,7 @@ static struct file_operations ftrace_filter_fops = { | |||
1891 | .release = ftrace_filter_release, | 1891 | .release = ftrace_filter_release, |
1892 | }; | 1892 | }; |
1893 | 1893 | ||
1894 | static struct file_operations ftrace_notrace_fops = { | 1894 | static const struct file_operations ftrace_notrace_fops = { |
1895 | .open = ftrace_notrace_open, | 1895 | .open = ftrace_notrace_open, |
1896 | .read = ftrace_regex_read, | 1896 | .read = ftrace_regex_read, |
1897 | .write = ftrace_notrace_write, | 1897 | .write = ftrace_notrace_write, |
@@ -2423,7 +2423,7 @@ ftrace_pid_write(struct file *filp, const char __user *ubuf, | |||
2423 | return cnt; | 2423 | return cnt; |
2424 | } | 2424 | } |
2425 | 2425 | ||
2426 | static struct file_operations ftrace_pid_fops = { | 2426 | static const struct file_operations ftrace_pid_fops = { |
2427 | .read = ftrace_pid_read, | 2427 | .read = ftrace_pid_read, |
2428 | .write = ftrace_pid_write, | 2428 | .write = ftrace_pid_write, |
2429 | }; | 2429 | }; |