From: Ye Bin <yebin10@huawei.com>
To: <viro@zeniv.linux.org.uk>, <linux-fsdevel@vger.kernel.org>
Cc: <yebin10@huawei.com>
Subject: [PATCH] fs: Remove unused variable pid_struct and child_reaper in ns_ioctl function
Date: Tue, 14 Jul 2020 20:09:12 +0800 [thread overview]
Message-ID: <20200714120912.1000621-1-yebin10@huawei.com> (raw)
fs/nsfs.c: In function ‘ns_ioctl’:
fs/nsfs.c:195:14: warning: unused variable ‘pid_struct’ [-Wunused-variable]
195 | struct pid *pid_struct;
| ^~~~~~~~~~
fs/nsfs.c:194:22: warning: unused variable ‘child_reaper’ [-Wunused-variable]
194 | struct task_struct *child_reaper;
| ^~~~~~~~~~~~
Signed-off-by: Ye Bin <yebin10@huawei.com>
---
fs/nsfs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/nsfs.c b/fs/nsfs.c
index 5a7de1ee6df0..543672426fd3 100644
--- a/fs/nsfs.c
+++ b/fs/nsfs.c
@@ -191,8 +191,6 @@ static long ns_ioctl(struct file *filp, unsigned int ioctl,
{
struct user_namespace *user_ns;
struct pid_namespace *pid_ns;
- struct task_struct *child_reaper;
- struct pid *pid_struct;
pid_t pid;
struct ns_common *ns = get_proc_ns(file_inode(filp));
uid_t __user *argp;
--
2.25.4
reply other threads:[~2020-07-14 12:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200714120912.1000621-1-yebin10@huawei.com \
--to=yebin10@huawei.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).