Re: [PATCH] staging: android: ion: reduce lock contention latency

From: kbuild test robot
Date: Thu Mar 16 2017 - 17:27:29 EST


Hi Junil,

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.11-rc2 next-20170310]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Junil-Lee/staging-android-ion-reduce-lock-contention-latency/20170317-021346
config: i386-randconfig-i0-201711 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All warnings (new ones prefixed by >>):

drivers/staging/android/ion/ion_page_pool.c: In function 'ion_page_pool_remove':
>> drivers/staging/android/ion/ion_page_pool.c:68:9: warning: assignment from incompatible pointer type [enabled by default]
node = llist_entry((struct list_head *)node, struct page, lru);
^
drivers/staging/android/ion/ion_page_pool.c:74:9: warning: assignment from incompatible pointer type [enabled by default]
node = llist_entry((struct list_head *)node, struct page, lru);
^

vim +68 drivers/staging/android/ion/ion_page_pool.c

52 llist_add((struct llist_node *)&page->lru, &pool->low_items);
53 atomic_inc(&pool->low_count);
54 }
55
56 return 0;
57 }
58
59 static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high)
60 {
61 struct page *page = NULL;
62 struct llist_node *node;
63
64 if (high) {
65 BUG_ON(!atomic_read(&pool->high_count));
66 node = llist_del_first(&pool->high_items);
67 if (node)
> 68 node = llist_entry((struct list_head *)node, struct page, lru);
69 atomic_dec(&pool->high_count);
70 } else {
71 BUG_ON(!atomic_read(&pool->low_count));
72 node = llist_del_first(&pool->low_items);
73 if (node)
74 node = llist_entry((struct list_head *)node, struct page, lru);
75 atomic_dec(&pool->low_count);
76 }

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip