From patchwork Sun Jul 20 11:59:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 4590741 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 047C19F295 for ; Sun, 20 Jul 2014 12:00:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 347ED20154 for ; Sun, 20 Jul 2014 12:00:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4554E20149 for ; Sun, 20 Jul 2014 12:00:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751704AbaGTMAE (ORCPT ); Sun, 20 Jul 2014 08:00:04 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:41772 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212AbaGTMAD (ORCPT ); Sun, 20 Jul 2014 08:00:03 -0400 Received: by mail-pa0-f52.google.com with SMTP id bj1so8084477pad.11 for ; Sun, 20 Jul 2014 05:00:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+P0POb9tcGPmQHp5Y4Xzj2IJr1UpcgXEmVHLf+n9UyQ=; b=XFYkQipDqiET/tnh1j84u9OFBYp5rRQJ/X3iDhZYM6PUM9WaX9wAQ1o1e5RgKLoXEs WII3aRVy42QObAp80EY+HOE86Frv2EUumwisbMgd3QmWQV5787mKWy6IGVARh1VFEAVK O2rnDteSwnoYl++NDxJv81OKsHcCN5sojtNuxv18NbCsFgwGgX4i0qAhNcCLkoUoksRs /0KtQ2/lvpLT6pO1gFBDlXWW1doU0dlxutI5T5CL5PsAlq8qmNG/hLgHyuyu6IMCTJwA p4nx6QHA1XSIP5LstFjVyytXjc0RPlt9LfaJTS913uYJgDOajy3zqePPY9pa6/1lMB8F M4hg== X-Gm-Message-State: ALoCoQl1bF8zmh9OrvX9KQqJkEd92lHdMKI/a6UBlLgyPY5V3zSOp3YxOQ7ARKCUnIeWBk5yv9uG X-Received: by 10.70.53.193 with SMTP id d1mr18204209pdp.77.1405857602036; Sun, 20 Jul 2014 05:00:02 -0700 (PDT) Received: from localhost ([122.172.242.64]) by mx.google.com with ESMTPSA id uw4sm45367921pab.40.2014.07.20.04.59.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 20 Jul 2014 05:00:01 -0700 (PDT) From: Viresh Kumar To: arnd@linaro.org, olof@lixom.net, arm@kernel.org Cc: linux-arm-kernel@lists.infradead.org, spear-devel@list.st.com, bhelgaas@google.com, linux-pci@vger.kernel.org, mohit.kumar@st.com, pratyush.anand@st.com, Viresh Kumar Subject: [PATCH 1/2] PCI: spear: Fix Section mismatch compilation warning for probe() Date: Sun, 20 Jul 2014 17:29:47 +0530 Message-Id: <76576b662613369d0c71db30ceed4ed5ae1343d2.1405857442.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Following compilation warning occurs when compiled with: CONFIG_DEBUG_SECTION_MISMATCH=y WARNING: drivers/pci/host/built-in.o(.data+0xc0): Section mismatch in reference from the variable spear13xx_pcie_driver to the function .init.text:spear13xx_pcie_probe() Both .probe() and pcie_init() are marked with __init, but spear13xx_pcie_driver isn't. And so section mismatch. Fix it by marking spear13xx_pcie_driver with __initdata. Fixes: 51b66a6 (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx) Reported-by: Olof Johansson Signed-off-by: Viresh Kumar --- Olof/Arnd, Let me know if a PULL request is required for this, otherwise just apply them directly. drivers/pci/host/pcie-spear13xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 99738e4..67315ea 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c @@ -382,7 +382,7 @@ static const struct of_device_id spear13xx_pcie_of_match[] = { }; MODULE_DEVICE_TABLE(of, spear13xx_pcie_of_match); -static struct platform_driver spear13xx_pcie_driver = { +static struct platform_driver spear13xx_pcie_driver __initdata = { .probe = spear13xx_pcie_probe, .remove = spear13xx_pcie_remove, .driver = {