aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c8
-rw-r--r--fs/proc/proc_sysctl.c1
-rw-r--r--fs/proc/root.c1
-rw-r--r--fs/proc/task_mmu.c1
4 files changed, 11 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index a1c43e7c8a7b..bc307d7a5b76 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1151,6 +1151,7 @@ static ssize_t oom_score_adj_write(struct file *file, const char __user *buf,
1151static const struct file_operations proc_oom_score_adj_operations = { 1151static const struct file_operations proc_oom_score_adj_operations = {
1152 .read = oom_score_adj_read, 1152 .read = oom_score_adj_read,
1153 .write = oom_score_adj_write, 1153 .write = oom_score_adj_write,
1154 .llseek = default_llseek,
1154}; 1155};
1155 1156
1156#ifdef CONFIG_AUDITSYSCALL 1157#ifdef CONFIG_AUDITSYSCALL
@@ -2039,11 +2040,13 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf,
2039static const struct file_operations proc_fdinfo_file_operations = { 2040static const struct file_operations proc_fdinfo_file_operations = {
2040 .open = nonseekable_open, 2041 .open = nonseekable_open,
2041 .read = proc_fdinfo_read, 2042 .read = proc_fdinfo_read,
2043 .llseek = no_llseek,
2042}; 2044};
2043 2045
2044static const struct file_operations proc_fd_operations = { 2046static const struct file_operations proc_fd_operations = {
2045 .read = generic_read_dir, 2047 .read = generic_read_dir,
2046 .readdir = proc_readfd, 2048 .readdir = proc_readfd,
2049 .llseek = default_llseek,
2047}; 2050};
2048 2051
2049/* 2052/*
@@ -2112,6 +2115,7 @@ static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir)
2112static const struct file_operations proc_fdinfo_operations = { 2115static const struct file_operations proc_fdinfo_operations = {
2113 .read = generic_read_dir, 2116 .read = generic_read_dir,
2114 .readdir = proc_readfdinfo, 2117 .readdir = proc_readfdinfo,
2118 .llseek = default_llseek,
2115}; 2119};
2116 2120
2117/* 2121/*
@@ -2343,6 +2347,7 @@ static int proc_attr_dir_readdir(struct file * filp,
2343static const struct file_operations proc_attr_dir_operations = { 2347static const struct file_operations proc_attr_dir_operations = {
2344 .read = generic_read_dir, 2348 .read = generic_read_dir,
2345 .readdir = proc_attr_dir_readdir, 2349 .readdir = proc_attr_dir_readdir,
2350 .llseek = default_llseek,
2346}; 2351};
2347 2352
2348static struct dentry *proc_attr_dir_lookup(struct inode *dir, 2353static struct dentry *proc_attr_dir_lookup(struct inode *dir,
@@ -2751,6 +2756,7 @@ static int proc_tgid_base_readdir(struct file * filp,
2751static const struct file_operations proc_tgid_base_operations = { 2756static const struct file_operations proc_tgid_base_operations = {
2752 .read = generic_read_dir, 2757 .read = generic_read_dir,
2753 .readdir = proc_tgid_base_readdir, 2758 .readdir = proc_tgid_base_readdir,
2759 .llseek = default_llseek,
2754}; 2760};
2755 2761
2756static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){ 2762static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){
@@ -3088,6 +3094,7 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den
3088static const struct file_operations proc_tid_base_operations = { 3094static const struct file_operations proc_tid_base_operations = {
3089 .read = generic_read_dir, 3095 .read = generic_read_dir,
3090 .readdir = proc_tid_base_readdir, 3096 .readdir = proc_tid_base_readdir,
3097 .llseek = default_llseek,
3091}; 3098};
3092 3099
3093static const struct inode_operations proc_tid_base_inode_operations = { 3100static const struct inode_operations proc_tid_base_inode_operations = {
@@ -3324,4 +3331,5 @@ static const struct inode_operations proc_task_inode_operations = {
3324static const struct file_operations proc_task_operations = { 3331static const struct file_operations proc_task_operations = {
3325 .read = generic_read_dir, 3332 .read = generic_read_dir,
3326 .readdir = proc_task_readdir, 3333 .readdir = proc_task_readdir,
3334 .llseek = default_llseek,
3327}; 3335};
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 5be436ea088e..2fc52552271d 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -364,6 +364,7 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
364static const struct file_operations proc_sys_file_operations = { 364static const struct file_operations proc_sys_file_operations = {
365 .read = proc_sys_read, 365 .read = proc_sys_read,
366 .write = proc_sys_write, 366 .write = proc_sys_write,
367 .llseek = default_llseek,
367}; 368};
368 369
369static const struct file_operations proc_sys_dir_file_operations = { 370static const struct file_operations proc_sys_dir_file_operations = {
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 4258384ed22d..93d99b316325 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -179,6 +179,7 @@ static int proc_root_readdir(struct file * filp,
179static const struct file_operations proc_root_operations = { 179static const struct file_operations proc_root_operations = {
180 .read = generic_read_dir, 180 .read = generic_read_dir,
181 .readdir = proc_root_readdir, 181 .readdir = proc_root_readdir,
182 .llseek = default_llseek,
182}; 183};
183 184
184/* 185/*
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index 271afc48b9a5..aa56920df335 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -539,6 +539,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf,
539 539
540const struct file_operations proc_clear_refs_operations = { 540const struct file_operations proc_clear_refs_operations = {
541 .write = clear_refs_write, 541 .write = clear_refs_write,
542 .llseek = noop_llseek,
542}; 543};
543 544
544struct pagemapread { 545struct pagemapread {