• N
    cris: intmem: fix pointer comparison compile warning · 506823f6
    Niklas Cassel 提交于
    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: NNiklas Cassel <nks@flawful.org>
    Signed-off-by: NJesper Nilsson <jesper.nilsson@axis.com>
    506823f6
intmem.c 3.7 KB