From patchwork Tue Jun 14 19:20:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 9176719 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72F4960573 for ; Tue, 14 Jun 2016 19:20:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 629432793D for ; Tue, 14 Jun 2016 19:20:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56950282ED; Tue, 14 Jun 2016 19:20:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B26722824A for ; Tue, 14 Jun 2016 19:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbcFNTUo (ORCPT ); Tue, 14 Jun 2016 15:20:44 -0400 Received: from bes.se.axis.com ([195.60.68.10]:36165 "EHLO bes.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbcFNTUo (ORCPT ); Tue, 14 Jun 2016 15:20:44 -0400 Received: from localhost (localhost [127.0.0.1]) by bes.se.axis.com (Postfix) with ESMTP id 282842E16C; Tue, 14 Jun 2016 21:20:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bes.se.axis.com Received: from bes.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bes.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id bhaCuYejefqB; Tue, 14 Jun 2016 21:20:38 +0200 (CEST) Received: from boulder.se.axis.com (boulder.se.axis.com [10.0.2.104]) by bes.se.axis.com (Postfix) with ESMTP id 466882E193; Tue, 14 Jun 2016 21:20:38 +0200 (CEST) Received: from boulder.se.axis.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 2B49F19DF; Tue, 14 Jun 2016 21:20:38 +0200 (CEST) Received: from seth.se.axis.com (seth.se.axis.com [10.0.2.172]) by boulder.se.axis.com (Postfix) with ESMTP id 2041216A3; Tue, 14 Jun 2016 21:20:38 +0200 (CEST) Received: from XBOX02.axis.com (xbox02.axis.com [10.0.5.16]) by seth.se.axis.com (Postfix) with ESMTP id 1E51DF29; Tue, 14 Jun 2016 21:20:38 +0200 (CEST) Received: from lnxartpec1.se.axis.com (10.0.5.107) by XBOX02.axis.com (10.0.5.16) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Tue, 14 Jun 2016 21:20:37 +0200 From: Niklas Cassel To: CC: , , Niklas Cassel Subject: [PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe Date: Tue, 14 Jun 2016 21:20:23 +0200 Message-ID: <1465932023-10606-1-git-send-email-niklass@axis.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <201606141525.f3Gs5A4F%fengguang.wu@intel.com> References: <201606141525.f3Gs5A4F%fengguang.wu@intel.com> MIME-Version: 1.0 X-Originating-IP: [10.0.5.107] X-ClientProxiedBy: XBOX04.axis.com (10.0.5.18) To XBOX02.axis.com (10.0.5.16) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Niklas Cassel 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 --- 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;