From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0()
Date: Mon, 27 Feb 2012 10:24:05 +0100 [thread overview]
Message-ID: <20120227092405.GW3852@pengutronix.de> (raw)
In-Reply-To: <1330273624-5757-1-git-send-email-festevam@gmail.com>
On Sun, Feb 26, 2012 at 01:27:04PM -0300, Fabio Estevam wrote:
> 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 <fabio.estevam@freescale.com>
Applied
Sascha
> ---
> 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;
> --
> 1.7.1
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2012-02-27 9:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-26 16:27 [PATCH] ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0() Fabio Estevam
2012-02-27 9:24 ` Sascha Hauer [this message]
2012-02-27 9:39 ` Shawn Guo
2012-02-27 9:41 ` Shawn Guo
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=20120227092405.GW3852@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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).