From: "Serge E. Hallyn" 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 --- include/linux/utsname.h | 10 ++++++++++ 1 files changed, 10 insertions(+) diff -puN include/linux/utsname.h~namespaces-utsname-introduce-temporary-helpers include/linux/utsname.h --- 25/include/linux/utsname.h~namespaces-utsname-introduce-temporary-helpers Fri May 19 11:40:04 2006 +++ 25-akpm/include/linux/utsname.h Fri May 19 11:40:04 2006 @@ -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 _