• H. Peter Anvin's avatar
    x86: PAT: fix address types in track_pfn_vma_new() · c1c15b65
    H. Peter Anvin authored
    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: default avatarH. Peter Anvin <hpa@zytor.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c1c15b65
pat.c 22.8 KB