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: 33936 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 13C45202DA for ; Sun, 20 Jul 2014 12:02:10 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rp18sf50564346iec.4 for ; Sun, 20 Jul 2014 05:02:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=+LLIsbnCM+KbQlT8MpZqpFqhNPFTCD2/aJT4hDpKUfM=; b=m0S+ogY4ValQEnVlsf4x6xfojzxKabVQeA/DMP26nuD1iuRKFqIbG1hw4Xn2vMbZCv oX1+cFLm1qcxgTv73uzGiQMbIlBgXxQlxdjuQDkNmPLQa0TiA9H2Bc+klifM8KZJ3ltY of3TazfSchYjujeLwa7ztay/gvpasFJEBVep8t6MG7OtGgt0LibK2YGSn+nGWme0CE0V j/agYtzk4sm2+sptYrX24TLwvhSMYacIl3tL4vhiE/kc0qOAuFlwbvDOQZa7aeb6KLww cGmuLvqxCzsmaK+m7VYPTZP9K0ao6dEGBefogHtMNMOKshG0iUR2L3ZO9N2huMU08t9Q I+dw== X-Gm-Message-State: ALoCoQnr80irfWVsxJ16h70kgSGVEVYe5TPGFnaZOzieo2F0WSjr3emTQWvMPcRNVEhORT5N+oyn X-Received: by 10.42.62.73 with SMTP id x9mr1027452ich.15.1405857729556; Sun, 20 Jul 2014 05:02:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.132 with SMTP id 4ls1581831qgj.12.gmail; Sun, 20 Jul 2014 05:02:09 -0700 (PDT) X-Received: by 10.52.170.69 with SMTP id ak5mr2198174vdc.63.1405857729445; Sun, 20 Jul 2014 05:02:09 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id r1si9190870vcx.25.2014.07.20.05.02.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 05:02:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so8863516vcb.16 for ; Sun, 20 Jul 2014 05:02:09 -0700 (PDT) X-Received: by 10.52.120.38 with SMTP id kz6mr981852vdb.86.1405857729367; Sun, 20 Jul 2014 05:02:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp37696vcb; Sun, 20 Jul 2014 05:02:08 -0700 (PDT) X-Received: by 10.70.129.81 with SMTP id nu17mr18291838pdb.56.1405857728574; Sun, 20 Jul 2014 05:02:08 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id au5si10986464pbc.93.2014.07.20.05.02.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jul 2014 05:02:08 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X8pn0-0006gs-6e; Sun, 20 Jul 2014 12:00:26 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X8pmx-0005s8-UJ for linux-arm-kernel@lists.infradead.org; Sun, 20 Jul 2014 12:00:24 +0000 Received: by mail-pa0-f46.google.com with SMTP id lj1so8033435pab.5 for ; Sun, 20 Jul 2014 05:00:02 -0700 (PDT) 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140720_050023_992750_C17C5A73 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.46 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.220.46 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: pratyush.anand@st.com, linux-pci@vger.kernel.org, spear-devel@list.st.com, Viresh Kumar , mohit.kumar@st.com, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 = {