[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202506242057.NVRNN4W1-lkp@intel.com>
Date: Tue, 24 Jun 2025 20:14:32 +0800
From: kernel test robot <lkp@...el.com>
To: Benjamin Gaignard <benjamin.gaignard@...labora.com>, joro@...tes.org,
will@...nel.org, robin.murphy@....com, robh@...nel.org,
krzk+dt@...nel.org, conor+dt@...nel.org, heiko@...ech.de,
nicolas.dufresne@...labora.com, jgg@...pe.ca
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
iommu@...ts.linux.dev, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, kernel@...labora.com,
Benjamin Gaignard <benjamin.gaignard@...labora.com>
Subject: Re: [PATCH v4 3/5] iommu: Add verisilicon IOMMU driver
Hi Benjamin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on rockchip/for-next arm64/for-next/core linus/master v6.16-rc3 next-20250623]
[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/Benjamin-Gaignard/dt-bindings-vendor-prefixes-Add-Verisilicon/20250623-234734
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250623153931.158765-4-benjamin.gaignard%40collabora.com
patch subject: [PATCH v4 3/5] iommu: Add verisilicon IOMMU driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250624/202506242057.NVRNN4W1-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/202506242057.NVRNN4W1-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506242057.NVRNN4W1-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/iommu/vsi-iommu.c:657:10: warning: variable 'err' is uninitialized when used here [-Wuninitialized]
657 | return err;
| ^~~
drivers/iommu/vsi-iommu.c:643:9: note: initialize the variable 'err' to silence this warning
643 | int err;
| ^
| = 0
1 warning generated.
vim +/err +657 drivers/iommu/vsi-iommu.c
638
639 static int vsi_iommu_probe(struct platform_device *pdev)
640 {
641 struct device *dev = &pdev->dev;
642 struct vsi_iommu *iommu;
643 int err;
644
645 iommu = devm_kzalloc(dev, sizeof(*iommu), GFP_KERNEL);
646 if (!iommu)
647 return -ENOMEM;
648
649 iommu->dev = dev;
650
651 iommu->regs = devm_platform_ioremap_resource(pdev, 0);
652 if (IS_ERR(iommu->regs))
653 return -ENOMEM;
654
655 iommu->num_clocks = devm_clk_bulk_get_all(dev, &iommu->clocks);
656 if (iommu->num_clocks < 0)
> 657 return err;
658
659 err = clk_bulk_prepare(iommu->num_clocks, iommu->clocks);
660 if (err)
661 return err;
662
663 iommu->irq = platform_get_irq(pdev, 0);
664 if (iommu->irq < 0)
665 return iommu->irq;
666
667 err = devm_request_irq(iommu->dev, iommu->irq, vsi_iommu_irq,
668 IRQF_SHARED, dev_name(dev), iommu);
669 if (err)
670 goto err_unprepare_clocks;
671
672 spin_lock_init(&iommu->lock);
673 dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
674 platform_set_drvdata(pdev, iommu);
675
676 pm_runtime_set_autosuspend_delay(dev, 100);
677 pm_runtime_use_autosuspend(dev);
678 pm_runtime_enable(dev);
679
680 err = iommu_device_sysfs_add(&iommu->iommu, dev, NULL, dev_name(dev));
681 if (err)
682 goto err_runtime_disable;
683
684 err = iommu_device_register(&iommu->iommu, &vsi_iommu_ops, dev);
685 if (err)
686 goto err_remove_sysfs;
687
688 return 0;
689
690 err_remove_sysfs:
691 iommu_device_sysfs_remove(&iommu->iommu);
692 err_runtime_disable:
693 pm_runtime_disable(dev);
694 err_unprepare_clocks:
695 clk_bulk_unprepare(iommu->num_clocks, iommu->clocks);
696 return err;
697 }
698
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists