All of lore.kernel.org
 help / color / mirror / Atom feed
* [rppt:gfp-to-kmalloc/v0.1 132/238] drivers/s390/cio/cmf.c:550:25: warning: variable 'size' set but not used
@ 2026-05-18 21:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-18 21:29 UTC (permalink / raw)
  To: Mike Rapoport (Microsoft); +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git gfp-to-kmalloc/v0.1
head:   cf8f69ff9142effba4d8d9a70a1a4f275044376c
commit: c2abb22c9f24b8570ba3fe1c115908b142514b99 [132/238] s390/cio: replace __get_free_pages() with kmalloc()
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260518/202605182340.isVRQEhf-lkp@intel.com/config)
compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260518/202605182340.isVRQEhf-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/202605182340.isVRQEhf-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/s390/cio/cmf.c: In function 'free_cmb':
>> drivers/s390/cio/cmf.c:550:25: warning: variable 'size' set but not used [-Wunused-but-set-variable]
     550 |                 ssize_t size;
         |                         ^~~~


vim +/size +550 drivers/s390/cio/cmf.c

^1da177e4c3f41 Linus Torvalds            2005-04-16  532  
94bb063312d872 Cornelia Huck             2006-06-29  533  static void free_cmb(struct ccw_device *cdev)
^1da177e4c3f41 Linus Torvalds            2005-04-16  534  {
^1da177e4c3f41 Linus Torvalds            2005-04-16  535  	struct ccw_device_private *priv;
94bb063312d872 Cornelia Huck             2006-06-29  536  	struct cmb_data *cmb_data;
^1da177e4c3f41 Linus Torvalds            2005-04-16  537  
^1da177e4c3f41 Linus Torvalds            2005-04-16  538  	spin_lock(&cmb_area.lock);
^1da177e4c3f41 Linus Torvalds            2005-04-16  539  	spin_lock_irq(cdev->ccwlock);
^1da177e4c3f41 Linus Torvalds            2005-04-16  540  
94bb063312d872 Cornelia Huck             2006-06-29  541  	priv = cdev->private;
94bb063312d872 Cornelia Huck             2006-06-29  542  	cmb_data = priv->cmb;
^1da177e4c3f41 Linus Torvalds            2005-04-16  543  	priv->cmb = NULL;
94bb063312d872 Cornelia Huck             2006-06-29  544  	if (cmb_data)
94bb063312d872 Cornelia Huck             2006-06-29  545  		kfree(cmb_data->last_block);
94bb063312d872 Cornelia Huck             2006-06-29  546  	kfree(cmb_data);
^1da177e4c3f41 Linus Torvalds            2005-04-16  547  	list_del_init(&priv->cmb_list);
^1da177e4c3f41 Linus Torvalds            2005-04-16  548  
^1da177e4c3f41 Linus Torvalds            2005-04-16  549  	if (list_empty(&cmb_area.list)) {
^1da177e4c3f41 Linus Torvalds            2005-04-16 @550  		ssize_t size;
^1da177e4c3f41 Linus Torvalds            2005-04-16  551  		size = sizeof(struct cmb) * cmb_area.num_channels;
7b4ff87cbf3d25 Heiko Carstens            2016-06-20  552  		cmf_activate(NULL, CMF_OFF);
c2abb22c9f24b8 Mike Rapoport (Microsoft  2026-02-10  553) 		kfree((void *)(unsigned long)cmb_area.mem);
^1da177e4c3f41 Linus Torvalds            2005-04-16  554  		cmb_area.mem = NULL;
^1da177e4c3f41 Linus Torvalds            2005-04-16  555  	}
^1da177e4c3f41 Linus Torvalds            2005-04-16  556  	spin_unlock_irq(cdev->ccwlock);
^1da177e4c3f41 Linus Torvalds            2005-04-16  557  	spin_unlock(&cmb_area.lock);
^1da177e4c3f41 Linus Torvalds            2005-04-16  558  }
^1da177e4c3f41 Linus Torvalds            2005-04-16  559  

:::::: The code at line 550 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

--
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-05-18 21:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18 21:29 [rppt:gfp-to-kmalloc/v0.1 132/238] drivers/s390/cio/cmf.c:550:25: warning: variable 'size' set but not used 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.