Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

proc: remove unused argument in proc_pid_lookup()

[adobriyan@gmail.com: delete "extern" from prototype]
Link: http://lkml.kernel.org/r/20190114195635.GA9372@avx2
Signed-off-by: Zhikang Zhang <zhangzhikang1@huawei.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Zhikang Zhang and committed by
Linus Torvalds
867aaccf 45f68ab5

+3 -3
+1 -1
fs/proc/base.c
··· 3161 3161 return d_splice_alias(inode, dentry); 3162 3162 } 3163 3163 3164 - struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags) 3164 + struct dentry *proc_pid_lookup(struct dentry *dentry, unsigned int flags) 3165 3165 { 3166 3166 struct task_struct *task; 3167 3167 unsigned tgid;
+1 -1
fs/proc/internal.h
··· 162 162 extern void pid_update_inode(struct task_struct *, struct inode *); 163 163 extern int pid_delete_dentry(const struct dentry *); 164 164 extern int proc_pid_readdir(struct file *, struct dir_context *); 165 - extern struct dentry *proc_pid_lookup(struct inode *, struct dentry *, unsigned int); 165 + struct dentry *proc_pid_lookup(struct dentry *, unsigned int); 166 166 extern loff_t mem_lseek(struct file *, loff_t, int); 167 167 168 168 /* Lookups */
+1 -1
fs/proc/root.c
··· 154 154 155 155 static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags) 156 156 { 157 - if (!proc_pid_lookup(dir, dentry, flags)) 157 + if (!proc_pid_lookup(dentry, flags)) 158 158 return NULL; 159 159 160 160 return proc_lookup(dir, dentry, flags);