All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon@ti.com>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: <kbuild-all@01.org>, <linux-pci@vger.kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>
Subject: Re: [pci:pci/host-designware 37/43] drivers/misc/pci_endpoint_test.c:420:8: error: implicit declaration of function 'pci_alloc_irq_vectors'
Date: Wed, 5 Apr 2017 11:13:52 +0530	[thread overview]
Message-ID: <142dc385-28e5-a068-d6a9-076c7156e955@ti.com> (raw)
In-Reply-To: <201704050616.ukHhiUMi%fengguang.wu@intel.com>



On Wednesday 05 April 2017 03:42 AM, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-designware
> head:   f6a1972e20ab2f40f4a8a1000bf34f4df3145c01
> commit: 450afc42599ba3544e23fb45e86a995d839e2e1c [37/43] misc: Add host side PCI driver for PCI test function device
> config: blackfin-allmodconfig (attached as .config)
> compiler: bfin-uclinux-gcc (GCC) 6.2.0
> reproduce:
>         wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 450afc42599ba3544e23fb45e86a995d839e2e1c
>         # save the attached .config to linux build tree
>         make.cross ARCH=blackfin 
> 
> All error/warnings (new ones prefixed by >>):
> 
>    drivers/misc/pci_endpoint_test.c: In function 'pci_endpoint_test_probe':
>>> drivers/misc/pci_endpoint_test.c:420:8: error: implicit declaration of function 'pci_alloc_irq_vectors' [-Werror=implicit-function-declaration]
>      irq = pci_alloc_irq_vectors(pdev, 1, 32, PCI_IRQ_MSI);
>            ^~~~~~~~~~~~~~~~~~~~~
>>> drivers/misc/pci_endpoint_test.c:420:43: error: 'PCI_IRQ_MSI' undeclared (first use in this function)
>      irq = pci_alloc_irq_vectors(pdev, 1, 32, PCI_IRQ_MSI);
>                                               ^~~~~~~~~~~
>    drivers/misc/pci_endpoint_test.c:420:43: note: each undeclared identifier is reported only once for each function it appears in
>>> drivers/misc/pci_endpoint_test.c:487:2: error: implicit declaration of function 'pci_disable_msi' [-Werror=implicit-function-declaration]
>      pci_disable_msi(pdev);
>      ^~~~~~~~~~~~~~~
>    drivers/misc/pci_endpoint_test.c: At top level:
>>> drivers/misc/pci_endpoint_test.c:530:1: warning: data definition has no type or storage class
>     module_pci_driver(pci_endpoint_test_driver);
>     ^~~~~~~~~~~~~~~~~
>>> drivers/misc/pci_endpoint_test.c:530:1: error: type defaults to 'int' in declaration of 'module_pci_driver' [-Werror=implicit-int]
>>> drivers/misc/pci_endpoint_test.c:530:1: warning: parameter names (without types) in function declaration
>    drivers/misc/pci_endpoint_test.c:524:26: warning: 'pci_endpoint_test_driver' defined but not used [-Wunused-variable]
>     static struct pci_driver pci_endpoint_test_driver = {
>                              ^~~~~~~~~~~~~~~~~~~~~~~~
>    cc1: some warnings being treated as errors

This seems to be because of CONFIG_COMPILE_TEST=y. Will fix the Kconfig of
pci_endpoint_test.c.

Thanks
Kishon

      reply	other threads:[~2017-04-05  5:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 22:12 [pci:pci/host-designware 37/43] drivers/misc/pci_endpoint_test.c:420:8: error: implicit declaration of function 'pci_alloc_irq_vectors' kbuild test robot
2017-04-05  5:43 ` 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=142dc385-28e5-a068-d6a9-076c7156e955@ti.com \
    --to=kishon@ti.com \
    --cc=bhelgaas@google.com \
    --cc=fengguang.wu@intel.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 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.