All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 4/7] block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types)
@ 2024-03-03  0:18 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-03-03  0:18 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   91714391174041bea724e68eff7ed9b5c1f439df
commit: f76294a6557b6c99c9ca58d89232171cf693eac2 [4/7] ANDROID: add hooks into blk-flush.c for customized I/O scheduler
config: i386-randconfig-061-20240302 (https://download.01.org/0day-ci/archive/20240303/202403030804.DH6RiCg3-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240303/202403030804.DH6RiCg3-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403030804.DH6RiCg3-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected int flags @@     got restricted gfp_t [usertype] flags @@
   block/blk-flush.c:484:65: sparse:     expected int flags
   block/blk-flush.c:484:65: sparse:     got restricted gfp_t [usertype] flags

vim +484 block/blk-flush.c

   469	
   470	#include <trace/hooks/block.h>
   471	struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,
   472						      gfp_t flags)
   473	{
   474		struct blk_flush_queue *fq;
   475		int rq_sz = sizeof(struct request);
   476		bool skip = false;
   477	
   478		fq = kzalloc_node(sizeof(*fq), flags, node);
   479		if (!fq)
   480			goto fail;
   481	
   482		spin_lock_init(&fq->mq_flush_lock);
   483	
 > 484		trace_android_vh_blk_alloc_flush_queue(&skip, cmd_size, flags, node,
   485						       fq);
   486		if (!skip) {
   487			rq_sz = round_up(rq_sz + cmd_size, cache_line_size());
   488			fq->flush_rq = kzalloc_node(rq_sz, flags, node);
   489		}
   490		if (!fq->flush_rq)
   491			goto fail_rq;
   492	
   493		INIT_LIST_HEAD(&fq->flush_queue[0]);
   494		INIT_LIST_HEAD(&fq->flush_queue[1]);
   495		INIT_LIST_HEAD(&fq->flush_data_in_flight);
   496	
   497		lockdep_register_key(&fq->key);
   498		lockdep_set_class(&fq->mq_flush_lock, &fq->key);
   499	
   500		return fq;
   501	
   502	 fail_rq:
   503		kfree(fq);
   504	 fail:
   505		return NULL;
   506	}
   507	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [android-common:android12-5.10 4/7] block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types)
@ 2024-11-14 13:59 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-11-14 13:59 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   e733b347fbf8a8a5149461d848bf4e726141afaf
commit: f76294a6557b6c99c9ca58d89232171cf693eac2 [4/7] ANDROID: add hooks into blk-flush.c for customized I/O scheduler
config: x86_64-randconfig-121-20241114 (https://download.01.org/0day-ci/archive/20241114/202411142102.ylpZAg2c-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411142102.ylpZAg2c-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411142102.ylpZAg2c-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected int flags @@     got restricted gfp_t [usertype] flags @@
   block/blk-flush.c:484:65: sparse:     expected int flags
   block/blk-flush.c:484:65: sparse:     got restricted gfp_t [usertype] flags

vim +484 block/blk-flush.c

   469	
   470	#include <trace/hooks/block.h>
   471	struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,
   472						      gfp_t flags)
   473	{
   474		struct blk_flush_queue *fq;
   475		int rq_sz = sizeof(struct request);
   476		bool skip = false;
   477	
   478		fq = kzalloc_node(sizeof(*fq), flags, node);
   479		if (!fq)
   480			goto fail;
   481	
   482		spin_lock_init(&fq->mq_flush_lock);
   483	
 > 484		trace_android_vh_blk_alloc_flush_queue(&skip, cmd_size, flags, node,
   485						       fq);
   486		if (!skip) {
   487			rq_sz = round_up(rq_sz + cmd_size, cache_line_size());
   488			fq->flush_rq = kzalloc_node(rq_sz, flags, node);
   489		}
   490		if (!fq->flush_rq)
   491			goto fail_rq;
   492	
   493		INIT_LIST_HEAD(&fq->flush_queue[0]);
   494		INIT_LIST_HEAD(&fq->flush_queue[1]);
   495		INIT_LIST_HEAD(&fq->flush_data_in_flight);
   496	
   497		lockdep_register_key(&fq->key);
   498		lockdep_set_class(&fq->mq_flush_lock, &fq->key);
   499	
   500		return fq;
   501	
   502	 fail_rq:
   503		kfree(fq);
   504	 fail:
   505		return NULL;
   506	}
   507	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [android-common:android12-5.10 4/7] block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types)
@ 2024-11-24 15:54 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-11-24 15:54 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   894861d67a0f883c2fa20a8ce58634c15d0a27dd
commit: f76294a6557b6c99c9ca58d89232171cf693eac2 [4/7] ANDROID: add hooks into blk-flush.c for customized I/O scheduler
config: x86_64-randconfig-121-20241114 (https://download.01.org/0day-ci/archive/20241124/202411242320.mzLEc6eU-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241124/202411242320.mzLEc6eU-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411242320.mzLEc6eU-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected int flags @@     got restricted gfp_t [usertype] flags @@
   block/blk-flush.c:484:65: sparse:     expected int flags
   block/blk-flush.c:484:65: sparse:     got restricted gfp_t [usertype] flags

vim +484 block/blk-flush.c

   469	
   470	#include <trace/hooks/block.h>
   471	struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,
   472						      gfp_t flags)
   473	{
   474		struct blk_flush_queue *fq;
   475		int rq_sz = sizeof(struct request);
   476		bool skip = false;
   477	
   478		fq = kzalloc_node(sizeof(*fq), flags, node);
   479		if (!fq)
   480			goto fail;
   481	
   482		spin_lock_init(&fq->mq_flush_lock);
   483	
 > 484		trace_android_vh_blk_alloc_flush_queue(&skip, cmd_size, flags, node,
   485						       fq);
   486		if (!skip) {
   487			rq_sz = round_up(rq_sz + cmd_size, cache_line_size());
   488			fq->flush_rq = kzalloc_node(rq_sz, flags, node);
   489		}
   490		if (!fq->flush_rq)
   491			goto fail_rq;
   492	
   493		INIT_LIST_HEAD(&fq->flush_queue[0]);
   494		INIT_LIST_HEAD(&fq->flush_queue[1]);
   495		INIT_LIST_HEAD(&fq->flush_data_in_flight);
   496	
   497		lockdep_register_key(&fq->key);
   498		lockdep_set_class(&fq->mq_flush_lock, &fq->key);
   499	
   500		return fq;
   501	
   502	 fail_rq:
   503		kfree(fq);
   504	 fail:
   505		return NULL;
   506	}
   507	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-24 15:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-14 13:59 [android-common:android12-5.10 4/7] block/blk-flush.c:484:65: sparse: sparse: incorrect type in argument 3 (different base types) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2024-11-24 15:54 kernel test robot
2024-03-03  0:18 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.