Skip to content

Commit 867aacc

Browse files
Zhikang Zhangtorvalds
authored andcommitted
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>
1 parent 45f68ab commit 867aacc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fs/proc/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,7 +3161,7 @@ static struct dentry *proc_pid_instantiate(struct dentry * dentry,
31613161
return d_splice_alias(inode, dentry);
31623162
}
31633163

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)
31653165
{
31663166
struct task_struct *task;
31673167
unsigned tgid;

fs/proc/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ extern struct inode *proc_pid_make_inode(struct super_block *, struct task_struc
162162
extern void pid_update_inode(struct task_struct *, struct inode *);
163163
extern int pid_delete_dentry(const struct dentry *);
164164
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);
166166
extern loff_t mem_lseek(struct file *, loff_t, int);
167167

168168
/* Lookups */

fs/proc/root.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static int proc_root_getattr(const struct path *path, struct kstat *stat,
154154

155155
static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
156156
{
157-
if (!proc_pid_lookup(dir, dentry, flags))
157+
if (!proc_pid_lookup(dentry, flags))
158158
return NULL;
159159

160160
return proc_lookup(dir, dentry, flags);

0 commit comments

Comments
 (0)