]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/zbud.c
ARM: dts: vf610: add remaining SAI instaces
[karo-tx-linux.git] / mm / zbud.c
index d8a181fd779bf7344e390476d7d46819dc51c05a..b42322e50f6308f9445fe83380f29973e99864b3 100644 (file)
--- a/mm/zbud.c
+++ b/mm/zbud.c
@@ -463,9 +463,6 @@ void zbud_free(struct zbud_pool *pool, unsigned long handle)
        spin_unlock(&pool->lock);
 }
 
-#define list_tail_entry(ptr, type, member) \
-       list_entry((ptr)->prev, type, member)
-
 /**
  * zbud_reclaim_page() - evicts allocations from a pool page and frees it
  * @pool:      pool from which a page will attempt to be evicted
@@ -514,7 +511,7 @@ int zbud_reclaim_page(struct zbud_pool *pool, unsigned int retries)
                return -EINVAL;
        }
        for (i = 0; i < retries; i++) {
-               zhdr = list_tail_entry(&pool->lru, struct zbud_header, lru);
+               zhdr = list_last_entry(&pool->lru, struct zbud_header, lru);
                list_del(&zhdr->lru);
                list_del(&zhdr->buddy);
                /* Protect zbud page against free */