utsname: remove unused exit_utsname()
PATCH 1/1 utsname: remove unused exit_utsname()
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 <[email protected]>
---
include/linux/utsname.h | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-)
fa0b64ea95feed3a62a94f807aba6c94f7f70d4b
include/linux/utsname.h +0 -12
@@ -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 flagsstatic 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 )
Signature · 1 line
1.1.6