From: kernel test robot <lkp@intel.com>
To: Omar Elghoul <oelghoul@linux.ibm.com>,
linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org,
kvm@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, oelghoul@linux.ibm.com,
hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com,
borntraeger@linux.ibm.com, svens@linux.ibm.com,
schnelle@linux.ibm.com, mjrosato@linux.ibm.com,
alifm@linux.ibm.com, farman@linux.ibm.com, gbayer@linux.ibm.com,
alex@shazbot.org
Subject: Re: [PATCH v1 3/3] s390/pci: Fence FMB enable/disable via sysfs for passthrough devices
Date: Sun, 3 May 2026 03:11:15 +0200 [thread overview]
Message-ID: <202605030313.sqrb6Bdr-lkp@intel.com> (raw)
In-Reply-To: <20260501192530.9429-4-oelghoul@linux.ibm.com>
Hi Omar,
kernel test robot noticed the following build warnings:
[auto build test WARNING on s390/features]
[also build test WARNING on awilliam-vfio/next awilliam-vfio/for-linus kvms390/next linus/master v6.16-rc1 next-20260430]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Omar-Elghoul/s390-pci-Preserve-FMB-state-in-device-re-enablement/20260502-155729
base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
patch link: https://lore.kernel.org/r/20260501192530.9429-4-oelghoul%40linux.ibm.com
patch subject: [PATCH v1 3/3] s390/pci: Fence FMB enable/disable via sysfs for passthrough devices
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260503/202605030313.sqrb6Bdr-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/20260503/202605030313.sqrb6Bdr-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/202605030313.sqrb6Bdr-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/s390/pci/pci.c: In function 'zpci_fmb_enable_device':
>> arch/s390/pci/pci.c:191:23: warning: unused variable 'flags' [-Wunused-variable]
191 | unsigned long flags;
| ^~~~~
>> arch/s390/pci/pci.c:189:33: warning: unused variable 'ctrs' [-Wunused-variable]
189 | struct zpci_iommu_ctrs *ctrs;
| ^~~~
arch/s390/pci/pci.c: In function 'zpci_fmb_reenable_device':
arch/s390/pci/pci.c:244:23: warning: unused variable 'flags' [-Wunused-variable]
244 | unsigned long flags;
| ^~~~~
arch/s390/pci/pci.c:242:33: warning: unused variable 'ctrs' [-Wunused-variable]
242 | struct zpci_iommu_ctrs *ctrs;
| ^~~~
vim +/flags +191 arch/s390/pci/pci.c
029a3d529699a0 Omar Elghoul 2026-05-01 184
d0b0885316ab7a Jan Glauber 2012-12-11 185 /* Modify PCI: Set PCI function measurement parameters */
d0b0885316ab7a Jan Glauber 2012-12-11 186 int zpci_fmb_enable_device(struct zpci_dev *zdev)
d0b0885316ab7a Jan Glauber 2012-12-11 187 {
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 188 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_SET_MEASURE);
92bce97f0c341d Niklas Schnelle 2023-10-04 @189 struct zpci_iommu_ctrs *ctrs;
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 190 struct zpci_fib fib = {0};
ecda483339a515 Matthew Rosato 2024-09-10 @191 unsigned long flags;
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 192 u8 cc, status;
d0b0885316ab7a Jan Glauber 2012-12-11 193
0b7589ecca2b6f Sebastian Ott 2016-06-15 194 if (zdev->fmb || sizeof(*zdev->fmb) < zdev->fmb_length)
d0b0885316ab7a Jan Glauber 2012-12-11 195 return -EINVAL;
d0b0885316ab7a Jan Glauber 2012-12-11 196
08b421245692f3 Wei Yongjun 2013-02-25 197 zdev->fmb = kmem_cache_zalloc(zdev_fmb_cache, GFP_KERNEL);
d0b0885316ab7a Jan Glauber 2012-12-11 198 if (!zdev->fmb)
d0b0885316ab7a Jan Glauber 2012-12-11 199 return -ENOMEM;
d0b0885316ab7a Jan Glauber 2012-12-11 200 WARN_ON((u64) zdev->fmb & 0xf);
d0b0885316ab7a Jan Glauber 2012-12-11 201
029a3d529699a0 Omar Elghoul 2026-05-01 202 zpci_fmb_clear_iommu_ctrs(zdev);
6001018ae8c659 Sebastian Ott 2015-04-10 203
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 204 fib.fmb_addr = virt_to_phys(zdev->fmb);
c68468ed3416ea Matthew Rosato 2022-06-06 205 fib.gd = zdev->gisa;
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 206 cc = zpci_mod_fc(req, &fib, &status);
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 207 if (cc) {
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 208 kmem_cache_free(zdev_fmb_cache, zdev->fmb);
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 209 zdev->fmb = NULL;
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 210 }
4e5bd7803bd1e8 Sebastian Ott 2017-06-10 211 return cc ? -EIO : 0;
d0b0885316ab7a Jan Glauber 2012-12-11 212 }
d0b0885316ab7a Jan Glauber 2012-12-11 213
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-05-03 1:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-01 19:25 [PATCH v1 0/3] vfio-pci/zdev: Improved zPCI Function Measurement Support Omar Elghoul
2026-05-01 19:25 ` [PATCH v1 1/3] s390/pci: Preserve FMB state in device re-enablement Omar Elghoul
2026-05-01 19:25 ` [PATCH v1 2/3] vfio-pci/zdev: Add VFIO FMB device feature Omar Elghoul
2026-05-01 19:25 ` [PATCH v1 3/3] s390/pci: Fence FMB enable/disable via sysfs for passthrough devices Omar Elghoul
2026-05-03 1:11 ` kernel test robot [this message]
2026-05-01 20:17 ` [PATCH v1 0/3] vfio-pci/zdev: Improved zPCI Function Measurement Support Omar Elghoul
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=202605030313.sqrb6Bdr-lkp@intel.com \
--to=lkp@intel.com \
--cc=agordeev@linux.ibm.com \
--cc=alex@shazbot.org \
--cc=alifm@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=farman@linux.ibm.com \
--cc=gbayer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mjrosato@linux.ibm.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oelghoul@linux.ibm.com \
--cc=schnelle@linux.ibm.com \
--cc=svens@linux.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox