diff options
author | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
commit | 22b17e2d0c40d870b3cb35f95d1b4b2c7d109216 (patch) | |
tree | 2a30566114c18da7d2e10e65b3e7a2f511701311 /kexec/kexec.c | |
parent | 7433197c7448060b2d95822ed6bee4a09532d418 (diff) |
Cast when making signed/unsigned comparison in locate_hole()
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.c')
-rw-r--r-- | kexec/kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c index db73b0e..c4eb254 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -208,7 +208,7 @@ unsigned long locate_hole(struct kexec_info *info, hole_align = 1; } /* Align everything to at least a page size boundary */ - if (hole_align < getpagesize()) { + if (hole_align < (unsigned long)getpagesize()) { hole_align = getpagesize(); } |