From: "Serge E. Hallyn" <serue@us.ibm.com>
To: lkml <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Subject: [PATCH] utsname: remove unused exit_utsname()
Date: Wed, 7 Jun 2006 16:11:19 -0500 [thread overview]
Message-ID: <20060607211119.GC30604@sergelap.austin.ibm.com> (raw)
The exit_utsname() inline function hasn't been in use since we switched
to using nsproxies. Remove it's definition. Thanks to Cedric for
noticing.
(This patch is on 2.6.17-rc5-mm3)
Signed-off-by: Serge Hallyn <serue@us.ibm.com>
---
include/linux/utsname.h | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
fa0b64ea95feed3a62a94f807aba6c94f7f70d4b
diff --git a/include/linux/utsname.h b/include/linux/utsname.h
index 0d500fe..bffb379 100644
--- a/include/linux/utsname.h
+++ b/include/linux/utsname.h
@@ -56,15 +56,6 @@ static inline void put_uts_ns(struct uts
{
kref_put(&ns->kref, free_uts_ns);
}
-
-static inline void exit_utsname(struct task_struct *p)
-{
- struct uts_namespace *uts_ns = p->nsproxy->uts_ns;
- if (uts_ns) {
- put_uts_ns(uts_ns);
- }
-}
-
#else
static inline int unshare_utsname(unsigned long unshare_flags,
struct uts_namespace **new_uts)
@@ -78,9 +69,6 @@ static inline int copy_utsname(int flags
static inline void put_uts_ns(struct uts_namespace *ns)
{
}
-static inline void exit_utsname(struct task_struct *p)
-{
-}
#endif
static inline struct new_utsname *utsname(void)
--
1.1.6
reply other threads:[~2006-06-07 21:13 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=20060607211119.GC30604@sergelap.austin.ibm.com \
--to=serue@us.ibm.com \
--cc=akpm@osdl.org \
--cc=clg@fr.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®