* kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code.
@ 2022-04-28 2:00 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-04-28 2:00 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2641 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Thomas Gleixner <tglx@linutronix.de>
CC: Jason Gunthorpe <jgg@nvidia.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 46cf2c613f4b10eb12f749207b0fd2c1bfae3088
commit: 890337624e1fa2da079fc1c036a62d178c985280 genirq/msi: Handle PCI/MSI allocation fail in core code
date: 5 months ago
:::::: branch date: 26 hours ago
:::::: commit date: 5 months ago
config: arm64-randconfig-m031-20220427 (https://download.01.org/0day-ci/archive/20220428/202204280907.Mp4p89nh-lkp(a)intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code.
vim +555 kernel/irq/msi.c
da5dd9e854d2ed Thomas Gleixner 2017-12-29 540
890337624e1fa2 Thomas Gleixner 2021-12-06 541 static int msi_handle_pci_fail(struct irq_domain *domain, struct msi_desc *desc,
890337624e1fa2 Thomas Gleixner 2021-12-06 542 int allocated)
890337624e1fa2 Thomas Gleixner 2021-12-06 543 {
890337624e1fa2 Thomas Gleixner 2021-12-06 544 switch(domain->bus_token) {
890337624e1fa2 Thomas Gleixner 2021-12-06 545 case DOMAIN_BUS_PCI_MSI:
890337624e1fa2 Thomas Gleixner 2021-12-06 546 case DOMAIN_BUS_VMD_MSI:
890337624e1fa2 Thomas Gleixner 2021-12-06 547 if (IS_ENABLED(CONFIG_PCI_MSI))
890337624e1fa2 Thomas Gleixner 2021-12-06 548 break;
890337624e1fa2 Thomas Gleixner 2021-12-06 549 fallthrough;
890337624e1fa2 Thomas Gleixner 2021-12-06 550 default:
890337624e1fa2 Thomas Gleixner 2021-12-06 551 return -ENOSPC;
890337624e1fa2 Thomas Gleixner 2021-12-06 552 }
890337624e1fa2 Thomas Gleixner 2021-12-06 553
890337624e1fa2 Thomas Gleixner 2021-12-06 554 /* Let a failed PCI multi MSI allocation retry */
890337624e1fa2 Thomas Gleixner 2021-12-06 @555 if (desc->nvec_used > 1)
890337624e1fa2 Thomas Gleixner 2021-12-06 556 return 1;
890337624e1fa2 Thomas Gleixner 2021-12-06 557
890337624e1fa2 Thomas Gleixner 2021-12-06 558 /* If there was a successful allocation let the caller know */
890337624e1fa2 Thomas Gleixner 2021-12-06 559 return allocated ? allocated : -ENOSPC;
890337624e1fa2 Thomas Gleixner 2021-12-06 560 }
890337624e1fa2 Thomas Gleixner 2021-12-06 561
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code.
@ 2022-04-30 10:16 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-04-30 10:16 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2641 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Thomas Gleixner <tglx@linutronix.de>
CC: Jason Gunthorpe <jgg@nvidia.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8013d1d3d2e33236dee13a133fba49ad55045e79
commit: 890337624e1fa2da079fc1c036a62d178c985280 genirq/msi: Handle PCI/MSI allocation fail in core code
date: 5 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 5 months ago
config: arm64-randconfig-m031-20220427 (https://download.01.org/0day-ci/archive/20220430/202204301857.7soRGY44-lkp(a)intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code.
vim +555 kernel/irq/msi.c
da5dd9e854d2ed Thomas Gleixner 2017-12-29 540
890337624e1fa2 Thomas Gleixner 2021-12-06 541 static int msi_handle_pci_fail(struct irq_domain *domain, struct msi_desc *desc,
890337624e1fa2 Thomas Gleixner 2021-12-06 542 int allocated)
890337624e1fa2 Thomas Gleixner 2021-12-06 543 {
890337624e1fa2 Thomas Gleixner 2021-12-06 544 switch(domain->bus_token) {
890337624e1fa2 Thomas Gleixner 2021-12-06 545 case DOMAIN_BUS_PCI_MSI:
890337624e1fa2 Thomas Gleixner 2021-12-06 546 case DOMAIN_BUS_VMD_MSI:
890337624e1fa2 Thomas Gleixner 2021-12-06 547 if (IS_ENABLED(CONFIG_PCI_MSI))
890337624e1fa2 Thomas Gleixner 2021-12-06 548 break;
890337624e1fa2 Thomas Gleixner 2021-12-06 549 fallthrough;
890337624e1fa2 Thomas Gleixner 2021-12-06 550 default:
890337624e1fa2 Thomas Gleixner 2021-12-06 551 return -ENOSPC;
890337624e1fa2 Thomas Gleixner 2021-12-06 552 }
890337624e1fa2 Thomas Gleixner 2021-12-06 553
890337624e1fa2 Thomas Gleixner 2021-12-06 554 /* Let a failed PCI multi MSI allocation retry */
890337624e1fa2 Thomas Gleixner 2021-12-06 @555 if (desc->nvec_used > 1)
890337624e1fa2 Thomas Gleixner 2021-12-06 556 return 1;
890337624e1fa2 Thomas Gleixner 2021-12-06 557
890337624e1fa2 Thomas Gleixner 2021-12-06 558 /* If there was a successful allocation let the caller know */
890337624e1fa2 Thomas Gleixner 2021-12-06 559 return allocated ? allocated : -ENOSPC;
890337624e1fa2 Thomas Gleixner 2021-12-06 560 }
890337624e1fa2 Thomas Gleixner 2021-12-06 561
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code.
@ 2022-02-09 15:40 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-02-09 15:40 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2704 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Thomas Gleixner <tglx@linutronix.de>
CC: Jason Gunthorpe <jgg@nvidia.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e6251ab4551f51fa4cee03523e08051898c3ce82
commit: 890337624e1fa2da079fc1c036a62d178c985280 genirq/msi: Handle PCI/MSI allocation fail in core code
date: 9 weeks ago
:::::: branch date: 19 hours ago
:::::: commit date: 9 weeks ago
config: arm-randconfig-m031-20220208 (https://download.01.org/0day-ci/archive/20220209/202202092336.cXjVyapN-lkp(a)intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code.
vim +555 kernel/irq/msi.c
da5dd9e854d2edd Thomas Gleixner 2017-12-29 540
890337624e1fa2d Thomas Gleixner 2021-12-06 541 static int msi_handle_pci_fail(struct irq_domain *domain, struct msi_desc *desc,
890337624e1fa2d Thomas Gleixner 2021-12-06 542 int allocated)
890337624e1fa2d Thomas Gleixner 2021-12-06 543 {
890337624e1fa2d Thomas Gleixner 2021-12-06 544 switch(domain->bus_token) {
890337624e1fa2d Thomas Gleixner 2021-12-06 545 case DOMAIN_BUS_PCI_MSI:
890337624e1fa2d Thomas Gleixner 2021-12-06 546 case DOMAIN_BUS_VMD_MSI:
890337624e1fa2d Thomas Gleixner 2021-12-06 547 if (IS_ENABLED(CONFIG_PCI_MSI))
890337624e1fa2d Thomas Gleixner 2021-12-06 548 break;
890337624e1fa2d Thomas Gleixner 2021-12-06 549 fallthrough;
890337624e1fa2d Thomas Gleixner 2021-12-06 550 default:
890337624e1fa2d Thomas Gleixner 2021-12-06 551 return -ENOSPC;
890337624e1fa2d Thomas Gleixner 2021-12-06 552 }
890337624e1fa2d Thomas Gleixner 2021-12-06 553
890337624e1fa2d Thomas Gleixner 2021-12-06 554 /* Let a failed PCI multi MSI allocation retry */
890337624e1fa2d Thomas Gleixner 2021-12-06 @555 if (desc->nvec_used > 1)
890337624e1fa2d Thomas Gleixner 2021-12-06 556 return 1;
890337624e1fa2d Thomas Gleixner 2021-12-06 557
890337624e1fa2d Thomas Gleixner 2021-12-06 558 /* If there was a successful allocation let the caller know */
890337624e1fa2d Thomas Gleixner 2021-12-06 559 return allocated ? allocated : -ENOSPC;
890337624e1fa2d Thomas Gleixner 2021-12-06 560 }
890337624e1fa2d Thomas Gleixner 2021-12-06 561
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-30 10:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 2:00 kernel/irq/msi.c:555 msi_handle_pci_fail() warn: ignoring unreachable code kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-04-30 10:16 kernel test robot
2022-02-09 15:40 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.