diff options
author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-06-16 22:14:00 (GMT) |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-06-16 23:27:14 (GMT) |
commit | 986a80d5c154808cc78170584670324a22fd8219 (patch) | |
tree | 11cc27ed20f65d1693ad2883a8606fbd7822888d /arch/ia64/kernel/entry.h | |
parent | 4845f3333765b732aa2d7ea6d72fd03cfec4fbf3 (diff) | |
download | linux-fsl-qoriq-986a80d5c154808cc78170584670324a22fd8219.tar.xz |
[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 <juhl-lkml@dif.dk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/entry.h')
0 files changed, 0 insertions, 0 deletions