From: Niklas Cassel <niklas.cassel@axis.com>
To: <bhelgaas@google.com>
Cc: <linux-pci@vger.kernel.org>, <jespern@axis.com>,
Niklas Cassel <niklass@axis.com>
Subject: [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe
Date: Tue, 14 Jun 2016 21:20:23 +0200 [thread overview]
Message-ID: <1465932023-10606-1-git-send-email-niklass@axis.com> (raw)
In-Reply-To: <201606141525.f3Gs5A4F%fengguang.wu@intel.com>
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
next prev parent reply other threads:[~2016-06-14 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-06-14 19:40 ` [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe Bjorn Helgaas
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=1465932023-10606-1-git-send-email-niklass@axis.com \
--to=niklas.cassel@axis.com \
--cc=bhelgaas@google.com \
--cc=jespern@axis.com \
--cc=linux-pci@vger.kernel.org \
--cc=niklass@axis.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).