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

kbuild test robot lkp at intel.com
Thu Mar 16 21:22:52 UTC 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 31734 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20170317/806bedc9/attachment-0001.bin>


More information about the devel mailing list