* [openeuler:openEuler-1.0-LTS 15530/22010] drivers/iommu/dmar.c:750 dmar_acpi_bus_add_dev() error: uninitialized symbol 'ret'.
@ 2024-03-31 9:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-31 9:29 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: Cheng Jian <cj.chengjian@huawei.com>
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 6726609c5990ede3a9fdb318d1dc759d03678a1a
commit: 0f7d0c8b66a415734cbd2c8a7afc586c4a1d61cc [15530/22010] iommu/vt-d:Add support for detecting ACPI device in RMRR
:::::: branch date: 26 hours ago
:::::: commit date: 3 years ago
config: x86_64-randconfig-161-20240329 (https://download.01.org/0day-ci/archive/20240331/202403311708.wZJ05bN5-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/202403311708.wZJ05bN5-lkp@intel.com/
smatch warnings:
drivers/iommu/dmar.c:750 dmar_acpi_bus_add_dev() error: uninitialized symbol 'ret'.
vim +/ret +750 drivers/iommu/dmar.c
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 732
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 733 static int dmar_acpi_bus_add_dev(u8 device_number, struct acpi_device *adev)
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 734 {
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 735 struct dmar_drhd_unit *dmaru;
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 736 struct acpi_dmar_hardware_unit *drhd;
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 737 int ret;
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 738
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 739 for_each_drhd_unit(dmaru) {
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 740 drhd = container_of(dmaru->hdr,
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 741 struct acpi_dmar_hardware_unit,
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 742 header);
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 743
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 744 ret = dmar_acpi_insert_dev_scope(device_number, adev, (void *)(drhd+1),
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 745 ((void *)drhd)+drhd->header.length,
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 746 dmaru->devices, dmaru->devices_cnt);
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 747 if (ret)
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 748 break;
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 749 }
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 @750 if (ret > 0)
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 751 ret = dmar_rmrr_add_acpi_dev(device_number, adev);
0f7d0c8b66a415 LeoLiu-oc 2021-04-07 752 return ret;
ed40356b5fcf1c David Woodhouse 2014-03-07 753 }
ed40356b5fcf1c David Woodhouse 2014-03-07 754
--
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-03-31 9:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-31 9:29 [openeuler:openEuler-1.0-LTS 15530/22010] drivers/iommu/dmar.c:750 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.