From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [openeuler:OLK-5.10 3009/30000] drivers/iommu/intel/dmar.c:770 dmar_acpi_bus_add_dev() error: uninitialized symbol 'ret'.
Date: Thu, 11 Apr 2024 15:16:09 +0800 [thread overview]
Message-ID: <202404111506.xfIcToZU-lkp@intel.com> (raw)
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
reply other threads:[~2024-04-11 7:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202404111506.xfIcToZU-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.