• Niklas Cassel's avatar
    cris: intmem: fix pointer comparison compile warning · 506823f6
    Niklas Cassel authored
    The code previously depended on list_head being defined
    as the first item in struct intmem_allocation.
    
    arch/cris/arch-v32/mm/intmem.c: In function ‘crisv32_intmem_free’:
    arch/cris/arch-v32/mm/intmem.c:116:14: warning: comparison of distinct pointer types lacks a cast
        if ((prev != &intmem_allocations) &&
                  ^
    arch/cris/arch-v32/mm/intmem.c:123:14: warning: comparison of distinct pointer types lacks a cast
        if ((next != &intmem_allocations) &&
                  ^
    Signed-off-by: default avatarNiklas Cassel <nks@flawful.org>
    Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
    506823f6
intmem.c 3.75 KB