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
build bottree: 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
PATCH 1/1 PCI: artpec: correct section mismatch for function artpec6_pcie_probe
From: Niklas Cassel <[email protected]>
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()
---
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(-)
drivers/pci/host/pcie-artpec6.c +1 -1
@@ -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;
Signature · 1 line
2.1.4
Re: [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe
Quoted 5 lines · Niklas Cassel
From: Niklas Cassel <[email protected]>
WARNING: drivers/pci/host/built-in.o(.data+0xb00): Section mismatch in reference from the variable
artpec6_pcie_driverto the function .init.text:artpec6_pcie_probe()Signed-off-by Niklas Cassel <[email protected]>
Folded into the pci/host-artpec branch, thanks, Niklas!
Quoted 30 lines
---
Reported by kbuild test robot.
I converted to usingmodule_platform_drivermacro 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(-)drivers/pci/host/pcie-artpec6.c +1
-1@@ -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;Signature · 6 lines
2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html