linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon@ti.com>
To: Bjorn Helgaas <helgaas@kernel.org>,
	kbuild test robot <fengguang.wu@intel.com>
Cc: <kbuild-all@01.org>, <linux-pci@vger.kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Pankaj Dubey <pankaj.dubey@samsung.com>
Subject: Re: [pci:pci/host-designware 2/6] drivers/pci/dwc/pci-imx6.c:634:2: error: implicit declaration of function 'hook_fault_code'
Date: Wed, 8 Feb 2017 11:22:18 +0530	[thread overview]
Message-ID: <589AB212.90208@ti.com> (raw)
In-Reply-To: <20170207230747.GE11659@bhelgaas-glaptop.roam.corp.google.com>

Hi Bjorn,

On Wednesday 08 February 2017 04:37 AM, Bjorn Helgaas wrote:
> Hi Kishon,
> 
> I dropped the "Add COMPILE_TEST to all DesignWare-based drivers" patch
> for now because I don't want to add errors to these non-ARM builds.
> 
> At least one caller (brcmstb_gisb_arb_probe()) uses "#ifdef ARM"
> around the call to hook_fault_code().  I guess we could do that, too.

yeah, makes sense.

Thanks
Kishon
> 
> On Sat, Feb 04, 2017 at 07:18:39AM +0800, kbuild test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-designware
>> head:   ac4108c530acc8f1c964a8b1c04d4523d026fd29
>> commit: 2b5839db931bcc499fe85e843297f1518385780a [2/6] PCI: dwc: Add COMPILE_TEST to all DesignWare-based drivers
>> config: i386-allmodconfig (attached as .config)
>> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
>> reproduce:
>>         git checkout 2b5839db931bcc499fe85e843297f1518385780a
>>         # save the attached .config to linux build tree
>>         make ARCH=i386 
>>
>> All errors (new ones prefixed by >>):
>>
>>    drivers/pci/dwc/pci-imx6.c: In function 'imx6_pcie_probe':
>>>> drivers/pci/dwc/pci-imx6.c:634:2: error: implicit declaration of function 'hook_fault_code' [-Werror=implicit-function-declaration]
>>      hook_fault_code(16 + 6, imx6q_pcie_abort_handler, SIGBUS, 0,
>>      ^~~~~~~~~~~~~~~
>>    cc1: some warnings being treated as errors
>> --
>>    drivers/pci/dwc/pci-keystone.c: In function 'keystone_pcie_fault':
>>>> drivers/pci/dwc/pci-keystone.c:256:7: error: 'struct pt_regs' has no member named 'uregs'
>>       regs->uregs[reg] = -1;
>>           ^~
>>>> drivers/pci/dwc/pci-keystone.c:257:7: error: 'struct pt_regs' has no member named 'ARM_pc'
>>       regs->ARM_pc += 4;
>>           ^~
>>    drivers/pci/dwc/pci-keystone.c: In function 'ks_pcie_host_init':
>>>> drivers/pci/dwc/pci-keystone.c:288:2: error: implicit declaration of function 'hook_fault_code' [-Werror=implicit-function-declaration]
>>      hook_fault_code(17, keystone_pcie_fault, SIGBUS, 0,
>>      ^~~~~~~~~~~~~~~
>>    cc1: some warnings being treated as errors
>>
>> vim +/hook_fault_code +634 drivers/pci/dwc/pci-imx6.c
>>
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  618  	struct pcie_port *pp;
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  619  	struct resource *dbi_base;
>> 13957652 drivers/pci/host/pci-imx6.c Bjorn Helgaas   2016-10-06  620  	struct device_node *node = dev->of_node;
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  621  	int ret;
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  622  
>> 13957652 drivers/pci/host/pci-imx6.c Bjorn Helgaas   2016-10-06  623  	imx6_pcie = devm_kzalloc(dev, sizeof(*imx6_pcie), GFP_KERNEL);
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  624  	if (!imx6_pcie)
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  625  		return -ENOMEM;
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  626  
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  627  	pp = &imx6_pcie->pp;
>> 13957652 drivers/pci/host/pci-imx6.c Bjorn Helgaas   2016-10-06  628  	pp->dev = dev;
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  629  
>> e6f1fef0 drivers/pci/host/pci-imx6.c Andrey Smirnov  2016-05-02  630  	imx6_pcie->variant =
>> 13957652 drivers/pci/host/pci-imx6.c Bjorn Helgaas   2016-10-06  631  		(enum imx6_pcie_variants)of_device_get_match_data(dev);
>> e3c06cd0 drivers/pci/host/pci-imx6.c Christoph Fritz 2016-04-05  632  
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  633  	/* Added for PCI abort handling */
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26 @634  	hook_fault_code(16 + 6, imx6q_pcie_abort_handler, SIGBUS, 0,
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  635  		"imprecise external abort");
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  636  
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  637  	dbi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> 13957652 drivers/pci/host/pci-imx6.c Bjorn Helgaas   2016-10-06  638  	pp->dbi_base = devm_ioremap_resource(dev, dbi_base);
>> b391bf31 drivers/pci/host/pci-imx6.c Fabio Estevam   2013-12-02  639  	if (IS_ERR(pp->dbi_base))
>> b391bf31 drivers/pci/host/pci-imx6.c Fabio Estevam   2013-12-02  640  		return PTR_ERR(pp->dbi_base);
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  641  
>> bb38919e drivers/pci/host/pci-imx6.c Sean Cross      2013-09-26  642  	/* Fetch GPIOs */
>>
>> :::::: The code at line 634 was first introduced by commit
>> :::::: bb38919ec56e0758c3ae56dfc091dcde1391353e PCI: imx6: Add support for i.MX6 PCIe controller
>>
>> :::::: TO: Sean Cross <xobs@kosagi.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
> 
> 

      reply	other threads:[~2017-02-08  5:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-03 23:18 [pci:pci/host-designware 2/6] drivers/pci/dwc/pci-imx6.c:634:2: error: implicit declaration of function 'hook_fault_code' kbuild test robot
2017-02-07 23:07 ` Bjorn Helgaas
2017-02-08  5:52   ` Kishon Vijay Abraham I [this message]

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=589AB212.90208@ti.com \
    --to=kishon@ti.com \
    --cc=bhelgaas@google.com \
    --cc=fengguang.wu@intel.com \
    --cc=helgaas@kernel.org \
    --cc=kbuild-all@01.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=pankaj.dubey@samsung.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 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).