From patchwork Sun Feb 26 16:27:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 143101 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F0F1BB6FC3 for ; Mon, 27 Feb 2012 03:29:51 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S1gwS-0001QJ-RV; Sun, 26 Feb 2012 16:27:20 +0000 Received: from mail-yx0-f177.google.com ([209.85.213.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S1gwP-0001Q6-5e for linux-arm-kernel@lists.infradead.org; Sun, 26 Feb 2012 16:27:18 +0000 Received: by yenm10 with SMTP id m10so107572yen.36 for ; Sun, 26 Feb 2012 08:27:15 -0800 (PST) Received-SPF: pass (google.com: domain of festevam@gmail.com designates 10.236.153.36 as permitted sender) client-ip=10.236.153.36; Authentication-Results: mr.google.com; spf=pass (google.com: domain of festevam@gmail.com designates 10.236.153.36 as permitted sender) smtp.mail=festevam@gmail.com; dkim=pass header.i=festevam@gmail.com Received: from mr.google.com ([10.236.153.36]) by 10.236.153.36 with SMTP id e24mr16311974yhk.67.1330273635246 (num_hops = 1); Sun, 26 Feb 2012 08:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=5e3bU+PUVnXH82TL7NKt0OVqTGONjyRDIfyFw8BZslM=; b=uSqwgQQQ2SeRfWjwdd7BzjpBPRQhK78Yf8twPpGiOkhVqDdAmKOHdy03WE1PZo/hg5 H2obNXm3cL9JlChSE4aHQBex+oeVhOiMOjXdx7iM/t8h1Fl2fIQhrvYwQRSZpPEKlN87 DUyh9SBftEypvVPlUaymgNtooDxuiWOXQhgTg= Received: by 10.236.153.36 with SMTP id e24mr12184285yhk.67.1330273635147; Sun, 26 Feb 2012 08:27:15 -0800 (PST) Received: from localhost.localdomain ([189.5.21.38]) by mx.google.com with ESMTPS id b4sm18575024anb.22.2012.02.26.08.27.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Feb 2012 08:27:14 -0800 (PST) From: Fabio Estevam To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0() Date: Sun, 26 Feb 2012 13:27:04 -0300 Message-Id: <1330273624-5757-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , Fabio Estevam , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Fix the following section mismatch: WARNING: vmlinux.o(.text+0x11be8): Section mismatch in reference from the function imx3_init_l2x0() to the function .init.text:l2x0_init() The function imx3_init_l2x0() references the function __init l2x0_init(). This is often because imx3_init_l2x0 lacks a __init annotation or the annotation of l2x0_init is wrong. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mm-imx3.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c index 8404ee7..6222151 100644 --- a/arch/arm/mach-imx/mm-imx3.c +++ b/arch/arm/mach-imx/mm-imx3.c @@ -76,7 +76,7 @@ static void __iomem *imx3_ioremap(unsigned long phys_addr, size_t size, return __arm_ioremap(phys_addr, size, mtype); } -void imx3_init_l2x0(void) +void __init imx3_init_l2x0(void) { void __iomem *l2x0_base; void __iomem *clkctl_base;