Skip to content
  • Milind Arun Choudhary's avatar
    proc: fix sparse warnings in pagemap_read() · 09729a99
    Milind Arun Choudhary authored
    
    
    fs/proc/task_mmu.c:696:12: warning: cast removes address space of expression
    fs/proc/task_mmu.c:696:9: warning: incorrect type in assignment (different address spaces)
    fs/proc/task_mmu.c:696:9:    expected unsigned long long [noderef] [usertype] <asn:1>*out
    fs/proc/task_mmu.c:696:9:    got unsigned long long [usertype] *<noident>
    fs/proc/task_mmu.c:697:12: warning: cast removes address space of expression
    fs/proc/task_mmu.c:697:9: warning: incorrect type in assignment (different address spaces)
    fs/proc/task_mmu.c:697:9:    expected unsigned long long [noderef] [usertype] <asn:1>*end
    fs/proc/task_mmu.c:697:9:    got unsigned long long [usertype] *<noident>
    fs/proc/task_mmu.c:723:12: warning: cast removes address space of expression
    fs/proc/task_mmu.c:723:26: error: subtraction of different types can't work (different address spaces)
    fs/proc/task_mmu.c:725:24: error: subtraction of different types can't work (different address spaces)
    
    Signed-off-by: default avatarMilind Arun Choudhary <milindchoudhary@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
    09729a99