From: kernel test robot <lkp@intel.com>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Rob Herring <robh@kernel.org>
Subject: [linux-next:master 6520/9562] drivers/pci/controller/dwc/pcie-designware-host.c:50:11: warning: excess elements in struct initializer
Date: Wed, 2 Dec 2020 21:03:38 +0800 [thread overview]
Message-ID: <202012022134.fiI2NLAV-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5880 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 0eedceafd3a63fd082743c914853ef4b9247dbe6
commit: f0a6743028f938cdd34e0c3249d3f0e6bfa04073 [6520/9562] PCI: dwc: exynos: Rework the driver to support Exynos5433 variant
config: sparc64-randconfig-r013-20201202 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f0a6743028f938cdd34e0c3249d3f0e6bfa04073
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout f0a6743028f938cdd34e0c3249d3f0e6bfa04073
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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/controller/dwc/pcie-designware-host.c:49:15: error: variable 'dw_pcie_msi_domain_info' has initializer but incomplete type
49 | static struct msi_domain_info dw_pcie_msi_domain_info = {
| ^~~~~~~~~~~~~~~
drivers/pci/controller/dwc/pcie-designware-host.c:50:3: error: 'struct msi_domain_info' has no member named 'flags'
50 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
| ^~~~~
drivers/pci/controller/dwc/pcie-designware-host.c:50:12: error: 'MSI_FLAG_USE_DEF_DOM_OPS' undeclared here (not in a function)
50 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/dwc/pcie-designware-host.c:50:39: error: 'MSI_FLAG_USE_DEF_CHIP_OPS' undeclared here (not in a function)
50 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/dwc/pcie-designware-host.c:51:6: error: 'MSI_FLAG_PCI_MSIX' undeclared here (not in a function)
51 | MSI_FLAG_PCI_MSIX | MSI_FLAG_MULTI_PCI_MSI),
| ^~~~~~~~~~~~~~~~~
drivers/pci/controller/dwc/pcie-designware-host.c:51:26: error: 'MSI_FLAG_MULTI_PCI_MSI' undeclared here (not in a function)
51 | MSI_FLAG_PCI_MSIX | MSI_FLAG_MULTI_PCI_MSI),
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/dwc/pcie-designware-host.c:50:11: warning: excess elements in struct initializer
50 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
| ^
drivers/pci/controller/dwc/pcie-designware-host.c:50:11: note: (near initialization for 'dw_pcie_msi_domain_info')
drivers/pci/controller/dwc/pcie-designware-host.c:52:3: error: 'struct msi_domain_info' has no member named 'chip'
52 | .chip = &dw_pcie_msi_irq_chip,
| ^~~~
drivers/pci/controller/dwc/pcie-designware-host.c:52:10: warning: excess elements in struct initializer
52 | .chip = &dw_pcie_msi_irq_chip,
| ^
drivers/pci/controller/dwc/pcie-designware-host.c:52:10: note: (near initialization for 'dw_pcie_msi_domain_info')
drivers/pci/controller/dwc/pcie-designware-host.c: In function 'dw_pcie_allocate_domains':
drivers/pci/controller/dwc/pcie-designware-host.c:247:19: error: implicit declaration of function 'pci_msi_create_irq_domain'; did you mean 'pci_msi_get_device_domain'? [-Werror=implicit-function-declaration]
247 | pp->msi_domain = pci_msi_create_irq_domain(fwnode,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| pci_msi_get_device_domain
drivers/pci/controller/dwc/pcie-designware-host.c:247:17: warning: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
247 | pp->msi_domain = pci_msi_create_irq_domain(fwnode,
| ^
drivers/pci/controller/dwc/pcie-designware-host.c: At top level:
drivers/pci/controller/dwc/pcie-designware-host.c:49:31: error: storage size of 'dw_pcie_msi_domain_info' isn't known
49 | static struct msi_domain_info dw_pcie_msi_domain_info = {
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +50 drivers/pci/controller/dwc/pcie-designware-host.c
7c5925afbc58c6d drivers/pci/dwc/pcie-designware-host.c Gustavo Pimentel 2018-03-06 48
7c5925afbc58c6d drivers/pci/dwc/pcie-designware-host.c Gustavo Pimentel 2018-03-06 49 static struct msi_domain_info dw_pcie_msi_domain_info = {
7c5925afbc58c6d drivers/pci/dwc/pcie-designware-host.c Gustavo Pimentel 2018-03-06 @50 .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
7c5925afbc58c6d drivers/pci/dwc/pcie-designware-host.c Gustavo Pimentel 2018-03-06 51 MSI_FLAG_PCI_MSIX | MSI_FLAG_MULTI_PCI_MSI),
7c5925afbc58c6d drivers/pci/dwc/pcie-designware-host.c Gustavo Pimentel 2018-03-06 52 .chip = &dw_pcie_msi_irq_chip,
feb85d9b1c47ea8 drivers/pci/dwc/pcie-designware-host.c Kishon Vijay Abraham I 2017-02-15 53 };
feb85d9b1c47ea8 drivers/pci/dwc/pcie-designware-host.c Kishon Vijay Abraham I 2017-02-15 54
:::::: The code at line 50 was first introduced by commit
:::::: 7c5925afbc58c6d6b384e1dc051bb992969bf787 PCI: dwc: Move MSI IRQs allocation to IRQ domains hierarchical API
:::::: TO: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
---
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: 28072 bytes --]
reply other threads:[~2020-12-02 13:04 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=202012022134.fiI2NLAV-lkp@intel.com \
--to=lkp@intel.com \
--cc=jh80.chung@samsung.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=m.szyprowski@samsung.com \
--cc=robh@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).