Signed-off-by: Simon Horman Index: kexec-tools/kexec/kexec.c =================================================================== --- kexec-tools.orig/kexec/kexec.c 2010-02-01 23:07:15.000000000 +1100 +++ kexec-tools/kexec/kexec.c 2010-02-01 23:07:20.000000000 +1100 @@ -208,7 +208,7 @@ unsigned long locate_hole(struct kexec_i 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(); }