]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: PAT: fix address types in track_pfn_vma_new()
authorH. Peter Anvin <hpa@zytor.com>
Tue, 23 Dec 2008 18:10:40 +0000 (10:10 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 24 Dec 2008 09:40:19 +0000 (10:40 +0100)
commitc1c15b65ec30275575dac9322aae607075769fbc
treed7e48801291eb6d3f70b05e6e8ffa2fe75ebae3c
parent67bac792cd0c05b4b6e0393c32605b028b8dd533
x86: PAT: fix address types in track_pfn_vma_new()

Impact: cleanup, fix warning

This warning:

 arch/x86/mm/pat.c: In function track_pfn_vma_copy:
 arch/x86/mm/pat.c:701: warning: passing argument 5 of follow_phys from incompatible pointer type

Triggers because physical addresses are resource_size_t, not u64.

This really matters when calling an interface like follow_phys() which
takes a pointer to a physical address -- although on x86, being
littleendian, it would generally work anyway as long as the memory region
wasn't completely uninitialized.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pat.c