All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android14-kiwi-6.1 226/226] drivers/dma-buf/heaps/page_pool.c:116 dmabuf_page_pool_create() warn: use 'gfp_mask' here instead of GFP_KERNEL?
@ 2026-08-23 12:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-23 12:32 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com

tree:   https://android.googlesource.com/kernel/common android14-kiwi-6.1
head:   3d2b0075700eab3a7aa5b384a24ed78ffedc1c24
commit: 70ad75e771d15cdf21f43548ee47bb38b4c2f564 [226/226] ANDROID: dma-heap: Make the page-pool library built-in
:::::: branch date: 20 hours ago
:::::: commit date: 3 years, 5 months ago
config: x86_64-randconfig-161-20260822 (https://download.01.org/0day-ci/archive/20260822/202608221811.Dujad3y9-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
smatch: v0.5.0-9187-g5189e3fb

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202608221811.Dujad3y9-lkp@intel.com/

smatch warnings:
drivers/dma-buf/heaps/page_pool.c:116 dmabuf_page_pool_create() warn: use 'gfp_mask' here instead of GFP_KERNEL?

vim +/gfp_mask +116 drivers/dma-buf/heaps/page_pool.c

d3b59a75e86384b John Stultz 2020-10-02  113  
d3b59a75e86384b John Stultz 2020-10-02  114  struct dmabuf_page_pool *dmabuf_page_pool_create(gfp_t gfp_mask, unsigned int order)
d3b59a75e86384b John Stultz 2020-10-02  115  {
d3b59a75e86384b John Stultz 2020-10-02 @116  	struct dmabuf_page_pool *pool = kmalloc(sizeof(*pool), GFP_KERNEL);
d3b59a75e86384b John Stultz 2020-10-02  117  	int i;
d3b59a75e86384b John Stultz 2020-10-02  118  
d3b59a75e86384b John Stultz 2020-10-02  119  	if (!pool)
d3b59a75e86384b John Stultz 2020-10-02  120  		return NULL;
d3b59a75e86384b John Stultz 2020-10-02  121  
d3b59a75e86384b John Stultz 2020-10-02  122  	for (i = 0; i < POOL_TYPE_SIZE; i++) {
d3b59a75e86384b John Stultz 2020-10-02  123  		pool->count[i] = 0;
d3b59a75e86384b John Stultz 2020-10-02  124  		INIT_LIST_HEAD(&pool->items[i]);
d3b59a75e86384b John Stultz 2020-10-02  125  	}
d3b59a75e86384b John Stultz 2020-10-02  126  	pool->gfp_mask = gfp_mask | __GFP_COMP;
d3b59a75e86384b John Stultz 2020-10-02  127  	pool->order = order;
d3b59a75e86384b John Stultz 2020-10-02  128  	mutex_init(&pool->mutex);
d3b59a75e86384b John Stultz 2020-10-02  129  
d3b59a75e86384b John Stultz 2020-10-02  130  	mutex_lock(&pool_list_lock);
d3b59a75e86384b John Stultz 2020-10-02  131  	list_add(&pool->list, &pool_list);
d3b59a75e86384b John Stultz 2020-10-02  132  	mutex_unlock(&pool_list_lock);
d3b59a75e86384b John Stultz 2020-10-02  133  
d3b59a75e86384b John Stultz 2020-10-02  134  	return pool;
d3b59a75e86384b John Stultz 2020-10-02  135  }
d3b59a75e86384b John Stultz 2020-10-02  136  EXPORT_SYMBOL_GPL(dmabuf_page_pool_create);
d3b59a75e86384b John Stultz 2020-10-02  137  

:::::: The code at line 116 was first introduced by commit
:::::: d3b59a75e86384b6d5302159fa89446ead81e71e ANDROID: dma-buf: heaps: Add a shrinker controlled page pool

:::::: TO: John Stultz <john.stultz@linaro.org>
:::::: CC: Greg Kroah-Hartman <gregkh@google.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-23 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-23 12:32 [android-common:android14-kiwi-6.1 226/226] drivers/dma-buf/heaps/page_pool.c:116 dmabuf_page_pool_create() warn: use 'gfp_mask' here instead of GFP_KERNEL? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.