From: kbuild test robot <lkp@intel.com>
To: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org, kbuild-all@lists.01.org
Subject: [alsa-devel] [sound:for-next 2/20] drivers/pci/pci.c:5859:6: error: redefinition of 'pci_pr3_present'
Date: Thu, 17 Oct 2019 17:42:47 +0800 [thread overview]
Message-ID: <201910171743.2X4agjN2%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2701 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: fa5a68b2abcefe2204075c80662e02cf59567a9f
commit: 2e1a529c10e18e62da55eac42c278f11216dddaa [2/20] PCI: Add pci_pr3_present() helper to check Power Resource for D3hot
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2e1a529c10e18e62da55eac42c278f11216dddaa
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/pci.c:5859:6: error: redefinition of 'pci_pr3_present'
bool pci_pr3_present(struct pci_dev *pdev)
^~~~~~~~~~~~~~~
In file included from include/linux/of_pci.h:5:0,
from drivers/pci/pci.c:17:
include/linux/pci.h:2317:13: note: previous definition of 'pci_pr3_present' was here
static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
^~~~~~~~~~~~~~~
drivers/pci/pci.c: In function 'pci_pr3_present':
>> drivers/pci/pci.c:5870:13: error: dereferencing pointer to incomplete type 'struct acpi_device'
return adev->power.flags.power_resources &&
^~
>> drivers/pci/pci.c:5871:3: error: implicit declaration of function 'acpi_has_method'; did you mean 'acpi_has_watchdog'? [-Werror=implicit-function-declaration]
acpi_has_method(adev->handle, "_PR3");
^~~~~~~~~~~~~~~
acpi_has_watchdog
In file included from include/linux/of_pci.h:5:0,
from drivers/pci/pci.c:17:
At top level:
include/linux/pci.h:2317:13: warning: 'pci_pr3_present' defined but not used [-Wunused-function]
static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pci_pr3_present +5859 drivers/pci/pci.c
5858
> 5859 bool pci_pr3_present(struct pci_dev *pdev)
5860 {
5861 struct acpi_device *adev;
5862
5863 if (acpi_disabled)
5864 return false;
5865
5866 adev = ACPI_COMPANION(&pdev->dev);
5867 if (!adev)
5868 return false;
5869
> 5870 return adev->power.flags.power_resources &&
> 5871 acpi_has_method(adev->handle, "_PR3");
5872 }
5873 EXPORT_SYMBOL_GPL(pci_pr3_present);
5874
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 15689 bytes --]
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next reply other threads:[~2019-10-17 9:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-17 9:42 kbuild test robot [this message]
2019-10-17 10:04 ` [alsa-devel] [sound:for-next 2/20] drivers/pci/pci.c:5859:6: error: redefinition of 'pci_pr3_present' Takashi Iwai
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=201910171743.2X4agjN2%lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=kai.heng.feng@canonical.com \
--cc=kbuild-all@lists.01.org \
--cc=tiwai@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox