Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1616058 > unrolled thread

Re: [PATCH] PCI: generic: stop hiding pci_host_common_probe declaration

Started byMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
First post2017-04-04 16:10 +0200
Last post2017-04-04 16:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] PCI: generic: stop hiding pci_host_common_probe  declaration Marc Gonzalez <marc_gonzalez@sigmadesigns.com> - 2017-04-04 16:10 +0200

#1616058 — Re: [PATCH] PCI: generic: stop hiding pci_host_common_probe declaration

FromMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Date2017-04-04 16:10 +0200
SubjectRe: [PATCH] PCI: generic: stop hiding pci_host_common_probe declaration
Message-ID<tsxjI-5Ua-35@gated-at.bofh.it>
On 21/03/2017 16:59, Arnd Bergmann wrote:

> When pci_host_common_probe() was moved into a separate module, the #ifdef around
> the declaration was left in the header file, which can lead to build errors in
> some configurations:
> 
> drivers/pci/host/pci-thunder-pem.c: In function 'thunder_pem_probe':
> drivers/pci/host/pci-thunder-pem.c:412:9: error: implicit declaration of function 'pci_host_common_probe';did you mean 'pci_host_bridge_priv'? [-Werror=implicit-function-declaration]
> 
> The ifdef serves no real purpose anyway, so we can just remove it.
> 
> Fixes: 4e64dbe226e7 ("PCI: generic: Expose pci_host_common_probe() for use by other drivers")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  include/linux/pci-ecam.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/include/linux/pci-ecam.h b/include/linux/pci-ecam.h
> index f0d2b9451270..92a73847e1d3 100644
> --- a/include/linux/pci-ecam.h
> +++ b/include/linux/pci-ecam.h
> @@ -68,9 +68,7 @@ extern struct pci_ecam_ops xgene_v1_pcie_ecam_ops; /* APM X-Gene PCIe v1 */
>  extern struct pci_ecam_ops xgene_v2_pcie_ecam_ops; /* APM X-Gene PCIe v2.x */
>  #endif
>  
> -#ifdef CONFIG_PCI_HOST_GENERIC
>  /* for DT-based PCI controllers that support ECAM */
>  int pci_host_common_probe(struct platform_device *pdev,
>  			  struct pci_ecam_ops *ops);
>  #endif
> -#endif
> 

I ran into this issue as well (on v4.9) and submitted a patch a week
after you did, by pure coincidence:

Subject: [TRIVIAL PATCH] PCI: Change pci_host_common_probe visibility
Date: Tue, 28 Mar 2017 17:29:51 +0200
https://www.spinics.net/lists/linux-pci/msg59823.html

Regards.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web