From: kernel test robot <lkp@intel.com>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [rppt:gfp-to-kmalloc/v0.1 132/238] drivers/s390/cio/cmf.c:550:25: warning: variable 'size' set but not used
Date: Mon, 18 May 2026 23:29:46 +0200 [thread overview]
Message-ID: <202605182340.isVRQEhf-lkp@intel.com> (raw)
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
reply other threads:[~2026-05-18 21:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202605182340.isVRQEhf-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.