linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: kbuild-all@01.org, linux-pci@vger.kernel.org
Subject: [pci:pci/host-cleanups-wip 35/95] drivers/pci/host/pcie-artpec6.c:278:30: error: passing argument 1 of 'artpec6_add_pcie_port' from incompatible pointer type
Date: Wed, 5 Oct 2016 17:14:34 +0800	[thread overview]
Message-ID: <201610051730.WJzOmYCD%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2438 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-cleanups-wip
head:   ee9b4e4188d1ca0e60edc96ed54acebe8ec19dc9
commit: 1d0c462456af1025fceda2d66a22c4e54513cdc3 [35/95] PCI: artpec6: Pass device-specific struct to internal functions
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1d0c462456af1025fceda2d66a22c4e54513cdc3
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pcie-artpec6.c: In function 'artpec6_pcie_probe':
>> drivers/pci/host/pcie-artpec6.c:278:30: error: passing argument 1 of 'artpec6_add_pcie_port' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = artpec6_add_pcie_port(pp, pdev);
                                 ^~
   drivers/pci/host/pcie-artpec6.c:212:12: note: expected 'struct artpec6_pcie *' but argument is of type 'struct pcie_port *'
    static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6,
               ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/artpec6_add_pcie_port +278 drivers/pci/host/pcie-artpec6.c

5fcdcf10 Bjorn Helgaas 2016-08-31  272  	artpec6->regmap =
a3cbfae1 Niklas Cassel 2016-05-09  273  		syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
a3cbfae1 Niklas Cassel 2016-05-09  274  						"axis,syscon-pcie");
5fcdcf10 Bjorn Helgaas 2016-08-31  275  	if (IS_ERR(artpec6->regmap))
5fcdcf10 Bjorn Helgaas 2016-08-31  276  		return PTR_ERR(artpec6->regmap);
a3cbfae1 Niklas Cassel 2016-05-09  277  
a3cbfae1 Niklas Cassel 2016-05-09 @278  	ret = artpec6_add_pcie_port(pp, pdev);
a3cbfae1 Niklas Cassel 2016-05-09  279  	if (ret < 0)
a3cbfae1 Niklas Cassel 2016-05-09  280  		return ret;
a3cbfae1 Niklas Cassel 2016-05-09  281  

:::::: The code at line 278 was first introduced by commit
:::::: a3cbfae1f7b3b5b3bdac23f2feea16a3bd571d1f PCI: artpec: Add Axis ARTPEC-6 PCIe controller driver

:::::: TO: Niklas Cassel <niklas.cassel@axis.com>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>

---
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: 58509 bytes --]

                 reply	other threads:[~2016-10-05  9:14 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=201610051730.WJzOmYCD%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=bhelgaas@google.com \
    --cc=kbuild-all@01.org \
    --cc=linux-pci@vger.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).