From: Jesper Juhl Date: Thu, 16 Jun 2005 22:14:00 +0000 (-0700) Subject: [PATCH] avoid signed vs unsigned comparison in efi_range_is_wc() X-Git-Tag: v2.6.13-rc4~130^2~159^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986a80d5c154808cc78170584670324a22fd8219;p=pandora-kernel.git [PATCH] avoid signed vs unsigned comparison in efi_range_is_wc() warning when building with gcc -W : include/linux/efi.h: In function `efi_range_is_wc': include/linux/efi.h:320: warning: comparison between signed and unsigned It looks to me like a significantly large 'len' passed in could cause the loop to never end. Isn't it safer to make 'i' an unsigned long as well? Like this little patch below (which of course also kills the warning) : Signed-off-by: Jesper Juhl Signed-off-by: Tony Luck --- Reading git-diff-tree failed