aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/utsname.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-07-16 02:41:15 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:48 -0400
commit213dd266d48af90c1eec8688c1ff31aa34d21de2 (patch)
tree2882f6e84d36421ebe2a6360cfe0c773bd9053bd /include/linux/utsname.h
parente3a68e30d28dbc6981dfc3d6ceddbfa2f885fe4e (diff)
namespace: ensure clone_flags are always stored in an unsigned long
While working on unshare support for the network namespace I noticed we were putting clone flags in an int. Which is weird because the syscall uses unsigned long and we at least need an unsigned to properly hold all of the unshare flags. So to make the code consistent, this patch updates the code to use unsigned long instead of int for the clone flags in those places where we get it wrong today. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/utsname.h')
-rw-r--r--include/linux/utsname.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/utsname.h b/include/linux/utsname.h
index 51ad167611e4..923db99175f2 100644
--- a/include/linux/utsname.h
+++ b/include/linux/utsname.h
@@ -48,7 +48,8 @@ static inline void get_uts_ns(struct uts_namespace *ns)
48 kref_get(&ns->kref); 48 kref_get(&ns->kref);
49} 49}
50 50
51extern struct uts_namespace *copy_utsname(int flags, struct uts_namespace *ns); 51extern struct uts_namespace *copy_utsname(unsigned long flags,
52 struct uts_namespace *ns);
52extern void free_uts_ns(struct kref *kref); 53extern void free_uts_ns(struct kref *kref);
53 54
54static inline void put_uts_ns(struct uts_namespace *ns) 55static inline void put_uts_ns(struct uts_namespace *ns)