diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-04-02 19:44:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-03 12:39:05 -0400 |
commit | 6a491e2e3e52a64c6d88a192c56499d931842ac5 (patch) | |
tree | e9383cf376b9cddc2f32dbc065e96e084da1c58d /arch/x86/mm | |
parent | 484cad34dd667235565c14a40e2f5a8143184aaa (diff) |
x86: fix is_io_mapping_possible() build warning on i386 allnoconfig
i386 allnoconfig:
arch/x86/mm/iomap_32.c: In function 'is_io_mapping_possible':
arch/x86/mm/iomap_32.c:27: warning: comparison is always false due to limited range of data type
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/iomap_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/iomap_32.c b/arch/x86/mm/iomap_32.c index e331f77348a7..8056545e2d39 100644 --- a/arch/x86/mm/iomap_32.c +++ b/arch/x86/mm/iomap_32.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | int is_io_mapping_possible(resource_size_t base, unsigned long size) | 24 | int is_io_mapping_possible(resource_size_t base, unsigned long size) |
25 | { | 25 | { |
26 | #ifndef CONFIG_X86_PAE | 26 | #if !defined(CONFIG_X86_PAE) && defined(CONFIG_PHYS_ADDR_T_64BIT) |
27 | /* There is no way to map greater than 1 << 32 address without PAE */ | 27 | /* There is no way to map greater than 1 << 32 address without PAE */ |
28 | if (base + size > 0x100000000ULL) | 28 | if (base + size > 0x100000000ULL) |
29 | return 0; | 29 | return 0; |