* [broonie-spi:for-next 9/11] drivers/spi/spi-pci1xxxx.c:768 pci1xxxx_spi_probe() warn: missing error code? 'ret'
@ 2025-05-28 7:43 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2025-05-28 7:43 UTC (permalink / raw)
To: oe-kbuild, Thangaraj Samynathan; +Cc: lkp, oe-kbuild-all, linux-spi, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
head: 6aae49917bd543677e539df17556071edd9a273a
commit: b4608e944177531334a79f3df2cd14275b47808c [9/11] spi: spi-pci1xxxx: Fix Probe failure with Dual SPI instance with INTx interrupts
config: riscv-randconfig-r073-20250528 (https://download.01.org/0day-ci/archive/20250528/202505281417.WyCoNJlC-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
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>
| Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
| Closes: https://lore.kernel.org/r/202505281417.WyCoNJlC-lkp@intel.com/
smatch warnings:
drivers/spi/spi-pci1xxxx.c:768 pci1xxxx_spi_probe() warn: missing error code? 'ret'
vim +/ret +768 drivers/spi/spi-pci1xxxx.c
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 748 spi_sub_ptr->parent = spi_bus;
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 749 spi_sub_ptr->spi_xfer_in_progress = false;
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 750
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 751 if (!iter) {
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 752 ret = pcim_enable_device(pdev);
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 753 if (ret)
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 754 return -ENOMEM;
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 755
d981e7b3f25fbab Philipp Stanner 2025-04-17 756 ret = pcim_request_all_regions(pdev, DRV_NAME);
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 757 if (ret)
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 758 return -ENOMEM;
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 759
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 760 spi_bus->reg_base = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0));
d981e7b3f25fbab Philipp Stanner 2025-04-17 761 if (!spi_bus->reg_base)
d981e7b3f25fbab Philipp Stanner 2025-04-17 762 return -EINVAL;
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 763
b4608e944177531 Thangaraj Samynathan 2025-05-27 764 num_vector = pci_alloc_irq_vectors(pdev, 1, hw_inst_cnt,
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 765 PCI_IRQ_ALL_TYPES);
b4608e944177531 Thangaraj Samynathan 2025-05-27 766 if (num_vector < 0) {
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 767 dev_err(&pdev->dev, "Error allocating MSI vectors\n");
d981e7b3f25fbab Philipp Stanner 2025-04-17 @768 return ret;
return num_vector;
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 769 }
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 770
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 771 init_completion(&spi_sub_ptr->spi_xfer_done);
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 772 /* Initialize Interrupts - SPI_INT */
1cc0cbea7167af5 Tharun Kumar P 2022-10-06 773 regval = readl(spi_bus->reg_base +
--
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:[~2025-05-28 7:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 7:43 [broonie-spi:for-next 9/11] drivers/spi/spi-pci1xxxx.c:768 pci1xxxx_spi_probe() warn: missing error code? 'ret' Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox