From: kernel test robot <lkp@intel.com>
To: "Saheed O. Bolarinwa" <refactormyself@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 4/4] PCI/ASPM: Remove unncessary linked list defined within aspm.c
Date: Fri, 17 Sep 2021 03:05:25 +0800 [thread overview]
Message-ID: <202109170227.fVwIVoUL-lkp@intel.com> (raw)
In-Reply-To: <20210916085206.2268-5-refactormyself@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3122 bytes --]
Hi "Saheed,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on v5.15-rc1 next-20210916]
[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]
url: https://github.com/0day-ci/linux/commits/Saheed-O-Bolarinwa/PCI-ASPM-Remove-struct-pcie_link_state-parent/20210916-175210
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: i386-buildonly-randconfig-r002-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/a2a494c1e1531309518be74ed2e406334b716fbe
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Saheed-O-Bolarinwa/PCI-ASPM-Remove-struct-pcie_link_state-parent/20210916-175210
git checkout a2a494c1e1531309518be74ed2e406334b716fbe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/pcie/aspm.c:963:35: warning: variable 'link' is uninitialized when used here [-Wuninitialized]
dev->link_state->aspm_capable = link->aspm_support;
^~~~
drivers/pci/pcie/aspm.c:960:30: note: initialize the variable 'link' to silence this warning
struct pcie_link_state *link;
^
= NULL
1 warning generated.
vim +/link +963 drivers/pci/pcie/aspm.c
954
955 /* Recheck latencies and update aspm_capable for links under the root */
956 static void pcie_update_aspm_capable(struct pcie_link_state *root)
957 {
958 struct pci_dev *dev;
959 struct pci_bus *rootbus = root->pdev->bus;
960 struct pcie_link_state *link;
961 BUG_ON(root->pdev->bus->parent->self);
962 list_for_each_entry(dev, &rootbus->devices, bus_list) {
> 963 dev->link_state->aspm_capable = link->aspm_support;
964 }
965
966 list_for_each_entry(dev, &rootbus->devices, bus_list) {
967 struct pci_dev *child;
968 struct pci_bus *linkbus = dev->subordinate;
969
970 list_for_each_entry(child, &linkbus->devices, bus_list) {
971 if ((pci_pcie_type(child) != PCI_EXP_TYPE_ENDPOINT) &&
972 (pci_pcie_type(child) != PCI_EXP_TYPE_LEG_END))
973 continue;
974 pcie_aspm_check_latency(child);
975 }
976 }
977 }
978
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44159 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 4/4] PCI/ASPM: Remove unncessary linked list defined within aspm.c
Date: Fri, 17 Sep 2021 03:05:25 +0800 [thread overview]
Message-ID: <202109170227.fVwIVoUL-lkp@intel.com> (raw)
In-Reply-To: <20210916085206.2268-5-refactormyself@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3193 bytes --]
Hi "Saheed,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on v5.15-rc1 next-20210916]
[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]
url: https://github.com/0day-ci/linux/commits/Saheed-O-Bolarinwa/PCI-ASPM-Remove-struct-pcie_link_state-parent/20210916-175210
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: i386-buildonly-randconfig-r002-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/a2a494c1e1531309518be74ed2e406334b716fbe
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Saheed-O-Bolarinwa/PCI-ASPM-Remove-struct-pcie_link_state-parent/20210916-175210
git checkout a2a494c1e1531309518be74ed2e406334b716fbe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/pcie/aspm.c:963:35: warning: variable 'link' is uninitialized when used here [-Wuninitialized]
dev->link_state->aspm_capable = link->aspm_support;
^~~~
drivers/pci/pcie/aspm.c:960:30: note: initialize the variable 'link' to silence this warning
struct pcie_link_state *link;
^
= NULL
1 warning generated.
vim +/link +963 drivers/pci/pcie/aspm.c
954
955 /* Recheck latencies and update aspm_capable for links under the root */
956 static void pcie_update_aspm_capable(struct pcie_link_state *root)
957 {
958 struct pci_dev *dev;
959 struct pci_bus *rootbus = root->pdev->bus;
960 struct pcie_link_state *link;
961 BUG_ON(root->pdev->bus->parent->self);
962 list_for_each_entry(dev, &rootbus->devices, bus_list) {
> 963 dev->link_state->aspm_capable = link->aspm_support;
964 }
965
966 list_for_each_entry(dev, &rootbus->devices, bus_list) {
967 struct pci_dev *child;
968 struct pci_bus *linkbus = dev->subordinate;
969
970 list_for_each_entry(child, &linkbus->devices, bus_list) {
971 if ((pci_pcie_type(child) != PCI_EXP_TYPE_ENDPOINT) &&
972 (pci_pcie_type(child) != PCI_EXP_TYPE_LEG_END))
973 continue;
974 pcie_aspm_check_latency(child);
975 }
976 }
977 }
978
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 44159 bytes --]
next prev parent reply other threads:[~2021-09-16 19:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-16 8:52 [RFC PATCH 0/3] PCI/ASPM: Remove unncessary linked list in aspm.c Saheed O. Bolarinwa
2021-09-16 8:52 ` [RFC PATCH 1/4] PCI/ASPM: Remove struct pcie_link_state.parent Saheed O. Bolarinwa
2021-09-26 22:05 ` Bjorn Helgaas
2021-09-16 8:52 ` [RFC PATCH 2/4] PCI/ASPM: Remove struct pcie_link_state.root Saheed O. Bolarinwa
2021-09-16 8:52 ` [RFC PATCH 3/4] PCI/ASPM: Remove struct pcie_link_state.downstream Saheed O. Bolarinwa
2021-09-16 8:52 ` [RFC PATCH 4/4] PCI/ASPM: Remove unncessary linked list defined within aspm.c Saheed O. Bolarinwa
2021-09-16 19:05 ` kernel test robot [this message]
2021-09-16 19:05 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-09-17 13:20 kernel test robot
2021-09-19 10:22 ` kernel test robot
2021-09-19 10:22 ` kernel test robot
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=202109170227.fVwIVoUL-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=refactormyself@gmail.com \
/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.