+ proc-remove-unused-argument-in-proc_pid_lookup.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: proc: remove unused argument in proc_pid_lookup()
has been added to the -mm tree.  Its filename is
     proc-remove-unused-argument-in-proc_pid_lookup.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/proc-remove-unused-argument-in-proc_pid_lookup.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/proc-remove-unused-argument-in-proc_pid_lookup.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Zhikang Zhang <zhangzhikang1@xxxxxxxxxx>
Subject: proc: remove unused argument in proc_pid_lookup()

[adobriyan@xxxxxxxxx: delete "extern" from prototype]
Link: http://lkml.kernel.org/r/20190114195635.GA9372@avx2
Signed-off-by: Zhikang Zhang <zhangzhikang1@xxxxxxxxxx>
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/proc/base.c     |    2 +-
 fs/proc/internal.h |    2 +-
 fs/proc/root.c     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/fs/proc/base.c~proc-remove-unused-argument-in-proc_pid_lookup
+++ a/fs/proc/base.c
@@ -3152,7 +3152,7 @@ static struct dentry *proc_pid_instantia
 	return d_splice_alias(inode, dentry);
 }
 
-struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
+struct dentry *proc_pid_lookup(struct dentry *dentry, unsigned int flags)
 {
 	struct task_struct *task;
 	unsigned tgid;
--- a/fs/proc/internal.h~proc-remove-unused-argument-in-proc_pid_lookup
+++ a/fs/proc/internal.h
@@ -162,7 +162,7 @@ extern struct inode *proc_pid_make_inode
 extern void pid_update_inode(struct task_struct *, struct inode *);
 extern int pid_delete_dentry(const struct dentry *);
 extern int proc_pid_readdir(struct file *, struct dir_context *);
-extern struct dentry *proc_pid_lookup(struct inode *, struct dentry *, unsigned int);
+struct dentry *proc_pid_lookup(struct dentry *, unsigned int);
 extern loff_t mem_lseek(struct file *, loff_t, int);
 
 /* Lookups */
--- a/fs/proc/root.c~proc-remove-unused-argument-in-proc_pid_lookup
+++ a/fs/proc/root.c
@@ -154,7 +154,7 @@ static int proc_root_getattr(const struc
 
 static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
 {
-	if (!proc_pid_lookup(dir, dentry, flags))
+	if (!proc_pid_lookup(dentry, flags))
 		return NULL;
 	
 	return proc_lookup(dir, dentry, flags);
_

Patches currently in -mm which might be from zhangzhikang1@xxxxxxxxxx are

proc-remove-unused-argument-in-proc_pid_lookup.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux