Skip to content

Commit

Permalink
userns: Silence silly gcc warning.
Browse files Browse the repository at this point in the history
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 <ebiederm@xmission.com>
  • Loading branch information
ebiederm committed May 19, 2012
1 parent 8ca937a commit 4b06a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ struct user_namespace init_user_ns = {
.extent[0] = {
.first = 0,
.lower_first = 0,
.count = 4294967295,
.count = 4294967295U,
},
},
.gid_map = {
.nr_extents = 1,
.extent[0] = {
.first = 0,
.lower_first = 0,
.count = 4294967295,
.count = 4294967295U,
},
},
.kref = {
Expand Down

0 comments on commit 4b06a81

Please sign in to comment.