From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [l1k:pciehp_dpc_v1 1/1] drivers/pci/hotplug/pciehp_hpc.c:575:30: error: use of undeclared identifier 'pdev'
Date: Thu, 25 Mar 2021 06:00:11 +0800 [thread overview]
Message-ID: <202103250605.2WSCFbd4-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2935 bytes --]
tree: https://github.com/l1k/linux pciehp_dpc_v1
head: a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a
commit: a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a [1/1] PCI: pciehp: Ignore Link Down/Up caused by DPC
config: powerpc-randconfig-r034-20210324 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a4fb88669cd98db6fef7dcac88e3ec425d40c00d)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/l1k/linux/commit/a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a
git remote add l1k https://github.com/l1k/linux
git fetch --no-tags l1k pciehp_dpc_v1
git checkout a0b9f6e639a1ab50faab2ed7a4b06994e9742b2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/hotplug/pciehp_hpc.c:575:30: error: use of undeclared identifier 'pdev'
pcie_capability_write_word(pdev, PCI_EXP_SLTSTA,
^
drivers/pci/hotplug/pciehp_hpc.c:577:32: error: use of undeclared identifier 'pdev'
clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
^
2 errors generated.
vim +/pdev +575 drivers/pci/hotplug/pciehp_hpc.c
565
566 static void pciehp_ignore_dpc_link_change(struct controller *ctrl, int irq)
567 {
568 /*
569 * Ignore link changes which occurred while waiting for DPC recovery.
570 * Could be several if DPC triggered multiple times consecutively.
571 */
572 synchronize_hardirq(irq);
573 atomic_and(~PCI_EXP_SLTSTA_DLLSC, &ctrl->pending_events);
574 if (pciehp_poll_mode)
> 575 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA,
576 PCI_EXP_SLTSTA_DLLSC);
577 clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags);
578 ctrl_info(ctrl, "Slot(%s): Link Down/Up ignored (recovered by DPC)\n",
579 slot_name(ctrl));
580
581 /*
582 * If the link is unexpectedly down after successful recovery,
583 * the corresponding link change may have been ignored above.
584 * Synthesize it to ensure that it is acted on.
585 */
586 down_read(&ctrl->reset_lock);
587 if (!pciehp_check_link_active(ctrl))
588 pciehp_request(ctrl, PCI_EXP_SLTSTA_DLLSC);
589 up_read(&ctrl->reset_lock);
590 }
591
---
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: 24268 bytes --]
reply other threads:[~2021-03-24 22:00 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=202103250605.2WSCFbd4-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.