linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [pci:pci/host-artpec 2/2] WARNING: drivers/built-in.o(.data+0x494b8): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe()
@ 2016-06-14  7:11 kbuild test robot
  2016-06-14 19:20 ` [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe Niklas Cassel
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2016-06-14  7:11 UTC (permalink / raw)
  Cc: kbuild-all, linux-pci, Bjorn Helgaas, Niklas Cassel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-artpec
head:   984e664cef4f2ee0b783672ea56b3b1e5be4948d
commit: 984e664cef4f2ee0b783672ea56b3b1e5be4948d [2/2] PCI: artpec: Add Axis ARTPEC-6 PCIe controller driver
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
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 984e664cef4f2ee0b783672ea56b3b1e5be4948d
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

>> WARNING: drivers/built-in.o(.data+0x494b8): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe()
   The variable artpec6_pcie_driver references
   the function __init artpec6_pcie_probe()
   If the reference is valid then annotate the
   variable with or __refdata (see linux/init.h) or name the variable:
   

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 57592 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe
  2016-06-14  7:11 [pci:pci/host-artpec 2/2] WARNING: drivers/built-in.o(.data+0x494b8): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe() kbuild test robot
@ 2016-06-14 19:20 ` Niklas Cassel
  2016-06-14 19:40   ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Niklas Cassel @ 2016-06-14 19:20 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, jespern, Niklas Cassel

From: Niklas Cassel <niklas.cassel@axis.com>

WARNING: drivers/pci/host/built-in.o(.data+0xb00): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe()

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
---
Reported by kbuild test robot.
I converted to using module_platform_driver macro in
v2 of this series, unfortunately I missed the
section mismatch warning.
Feel free to fold this into the original patch.

 drivers/pci/host/pcie-artpec6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pcie-artpec6.c b/drivers/pci/host/pcie-artpec6.c
index 19adc77..be54fad 100644
--- a/drivers/pci/host/pcie-artpec6.c
+++ b/drivers/pci/host/pcie-artpec6.c
@@ -223,7 +223,7 @@ static int __init artpec6_add_pcie_port(struct pcie_port *pp,
 	return 0;
 }
 
-static int __init artpec6_pcie_probe(struct platform_device *pdev)
+static int artpec6_pcie_probe(struct platform_device *pdev)
 {
 	struct artpec6_pcie *artpec6_pcie;
 	struct pcie_port *pp;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe
  2016-06-14 19:20 ` [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe Niklas Cassel
@ 2016-06-14 19:40   ` Bjorn Helgaas
  0 siblings, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2016-06-14 19:40 UTC (permalink / raw)
  To: Niklas Cassel; +Cc: bhelgaas, linux-pci, jespern, Niklas Cassel

On Tue, Jun 14, 2016 at 09:20:23PM +0200, Niklas Cassel wrote:
> From: Niklas Cassel <niklas.cassel@axis.com>
> 
> WARNING: drivers/pci/host/built-in.o(.data+0xb00): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe()
> 
> Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>

Folded into the pci/host-artpec branch, thanks, Niklas!

> ---
> Reported by kbuild test robot.
> I converted to using module_platform_driver macro in
> v2 of this series, unfortunately I missed the
> section mismatch warning.
> Feel free to fold this into the original patch.
> 
>  drivers/pci/host/pcie-artpec6.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/host/pcie-artpec6.c b/drivers/pci/host/pcie-artpec6.c
> index 19adc77..be54fad 100644
> --- a/drivers/pci/host/pcie-artpec6.c
> +++ b/drivers/pci/host/pcie-artpec6.c
> @@ -223,7 +223,7 @@ static int __init artpec6_add_pcie_port(struct pcie_port *pp,
>  	return 0;
>  }
>  
> -static int __init artpec6_pcie_probe(struct platform_device *pdev)
> +static int artpec6_pcie_probe(struct platform_device *pdev)
>  {
>  	struct artpec6_pcie *artpec6_pcie;
>  	struct pcie_port *pp;
> -- 
> 2.1.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-14 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-14  7:11 [pci:pci/host-artpec 2/2] WARNING: drivers/built-in.o(.data+0x494b8): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe() kbuild test robot
2016-06-14 19:20 ` [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe Niklas Cassel
2016-06-14 19:40   ` Bjorn Helgaas

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).