From: Serge E. Hallyn Date: Mon, 2 Oct 2006 09:18:10 +0000 (-0700) Subject: [PATCH] namespaces: utsname: introduce temporary helpers X-Git-Tag: v2.6.19-rc1~414 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bdd7aab7f0ecd5d337910816aa058c18398628e;p=linux-2.6 [PATCH] namespaces: utsname: introduce temporary helpers Define utsname() and init_utsname() which return &system_utsname. Users of system_utsname will be changed to use these helpers, after which system_utsname will disappear. Signed-off-by: Serge E. Hallyn Cc: Kirill Korotaev Cc: "Eric W. Biederman" Cc: Herbert Poetzl Cc: Andrey Savochkin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/utsname.h b/include/linux/utsname.h index 13e1da0c53..77e97a5755 100644 --- a/include/linux/utsname.h +++ b/include/linux/utsname.h @@ -32,5 +32,15 @@ struct new_utsname { extern struct new_utsname system_utsname; +static inline struct new_utsname *utsname(void) +{ + return &system_utsname; +} + +static inline struct new_utsname *init_utsname(void) +{ + return &system_utsname; +} + extern struct rw_semaphore uts_sem; #endif