]> err.no Git - linux-2.6/commit
x86: fix warning in e820_reserve_resources with 32bit
authorYinghai Lu <yhlu.kernel@gmail.com>
Sun, 29 Jun 2008 00:49:59 +0000 (17:49 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:16:07 +0000 (13:16 +0200)
commitb4df32f4aeef8794d0135fc8dc250acb44cfee60
tree357d504a9cf6f3beb544b3ad36671e3052d9c7ed
parent7482b0e962e128c5b574aa29761f97164189ef14
x86: fix warning in e820_reserve_resources with 32bit

when 64bit resource is not enabled, we get:

arch/x86/kernel/e820.c: In function ‘e820_reserve_resources’:
arch/x86/kernel/e820.c:1217: warning: comparison is always false due to limited range of data type

because res->start/end is resource_t aka u32. it will overflow.

fix it with temp end of u64

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/e820.c