cris: intmem: fix pointer comparison compile warning
authorNiklas Cassel <nks@flawful.org>
Thu, 22 Sep 2016 14:08:38 +0000 (16:08 +0200)
committerJesper Nilsson <jespern@axis.com>
Thu, 22 Sep 2016 14:11:18 +0000 (16:11 +0200)
commit506823f6e7a349ba3f26f03f162733af64c300cc
treed9774b4190b87811c9496f23591892959d518298
parent9d74179a226c83dd610c487a27ac6082b768b074
cris: intmem: fix pointer comparison compile warning

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: Niklas Cassel <nks@flawful.org>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/arch-v32/mm/intmem.c