[PATCH 1/2] cris: don't compare incompatible pointer type

2016-09-19 Thread Daniel Wagner
From: Daniel Wagner intmem_allocaionts is list head. Comparing the list head with prev and next works so far because the entry was placed at the beginning of struct intmem_allocation. Let's use list_entry to recover the correct pointer and which makes this code

[PATCH 1/2] cris: don't compare incompatible pointer type

2016-09-19 Thread Daniel Wagner
From: Daniel Wagner intmem_allocaionts is list head. Comparing the list head with prev and next works so far because the entry was placed at the beginning of struct intmem_allocation. Let's use list_entry to recover the correct pointer and which makes this code slightly more robust. Newer gcc