From: Eric W. Biederman Date: Sat, 19 May 2012 21:44:06 +0000 (-0600) Subject: userns: Silence silly gcc warning. X-Git-Tag: Ubuntu-5.13.0-19.19~24578^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4b06a81f1daee668fbd6de85557bfb36dd36078f;p=mirror_ubuntu-jammy-kernel.git userns: Silence silly gcc warning. On 32bit builds gcc says: kernel/user.c:30:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] kernel/user.c:38:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] Silence gcc by changing the constant 4294967295 to 4294967295U. Signed-off-by: Eric W. Biederman --- diff --git a/kernel/user.c b/kernel/user.c index f9e420e36699..b815fefbe76f 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -27,7 +27,7 @@ struct user_namespace init_user_ns = { .extent[0] = { .first = 0, .lower_first = 0, - .count = 4294967295, + .count = 4294967295U, }, }, .gid_map = { @@ -35,7 +35,7 @@ struct user_namespace init_user_ns = { .extent[0] = { .first = 0, .lower_first = 0, - .count = 4294967295, + .count = 4294967295U, }, }, .kref = {