* [PATCH] utsname: remove unused exit_utsname()
@ 2006-06-07 21:11 Serge E. Hallyn
0 siblings, 0 replies; only message in thread
From: Serge E. Hallyn @ 2006-06-07 21:11 UTC (permalink / raw)
To: lkml, Andrew Morton; +Cc: Cedric Le Goater
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-07 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07 21:11 [PATCH] utsname: remove unused exit_utsname() Serge E. Hallyn
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®