* [openeuler:OLK-5.10 3009/30000] drivers/iommu/intel/dmar.c:770 dmar_acpi_bus_add_dev() error: uninitialized symbol 'ret'.
@ 2024-04-11 7:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-11 7:16 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: kernel@openeuler.org
TO: Zheng Zengkai <zhengzengkai@huawei.com>
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 7b09b4c592e9578f7e0abbca2597f97a36692712
commit: d660222861c468ce77fe3197ddc5189deb1665c6 [3009/30000] iommu/vt-d:Add support for detecting ACPI device, in RMRR
:::::: branch date: 5 hours ago
:::::: commit date: 2 years, 9 months ago
config: x86_64-randconfig-161-20240331 (https://download.01.org/0day-ci/archive/20240411/202404111506.xfIcToZU-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
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 <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202404111506.xfIcToZU-lkp@intel.com/
smatch warnings:
drivers/iommu/intel/dmar.c:770 dmar_acpi_bus_add_dev() error: uninitialized symbol 'ret'.
vim +/ret +770 drivers/iommu/intel/dmar.c
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 753
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 754 static int dmar_acpi_bus_add_dev(u8 device_number, struct acpi_device *adev)
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 755 {
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 756 struct dmar_drhd_unit *dmaru;
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 757 struct acpi_dmar_hardware_unit *drhd;
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 758 int ret;
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 759
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 760 for_each_drhd_unit(dmaru) {
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 761 drhd = container_of(dmaru->hdr,
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 762 struct acpi_dmar_hardware_unit,
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 763 header);
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 764 ret = dmar_acpi_insert_dev_scope(device_number, adev, (void *)(drhd+1),
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 765 ((void *)drhd)+drhd->header.length,
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 766 dmaru->devices, dmaru->devices_cnt);
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 767 if (ret)
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 768 break;
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 769 }
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 @770 if (ret > 0)
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 771 ret = dmar_rmrr_add_acpi_dev(device_number, adev);
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 772
d660222861c468 drivers/iommu/intel/dmar.c LeoLiu-oc 2021-07-23 773 return ret;
ed40356b5fcf1c drivers/iommu/dmar.c David Woodhouse 2014-03-07 774 }
ed40356b5fcf1c drivers/iommu/dmar.c David Woodhouse 2014-03-07 775
--
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:[~2024-04-11 7:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 7:16 [openeuler:OLK-5.10 3009/30000] drivers/iommu/intel/dmar.c:770 dmar_acpi_bus_add_dev() error: uninitialized symbol 'ret' 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.