From: Nishanth Menon <nm@ti.com>
To: Elvis Dowson <elvis.dowson@mac.com>
Cc: Linux OMAP Mailing List <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] ETM: Fix etm_probe and etb_probe section mismatch warnings in arch/arm/kernel/etm.c
Date: Mon, 03 Jan 2011 08:23:52 -0600 [thread overview]
Message-ID: <4D21DBF8.1070504@ti.com> (raw)
In-Reply-To: <EC93877F-CDA7-4231-9B4C-0F72623AAC8F@mac.com>
Elvis Dowson had written, on 12/26/2010 03:26 PM, the following:
> Hi,
> This patch fixes section mismatch warnings for etm_probe() and etb_probe() for linux-2.6.37-rc7.
>
> Elvis Dowson
Could you post this to l-a and cc l-o?
a better cc list is got by scripts/get_maintainer.pl patch
>
>
> From d9168ebf22bfac428955b3a3fe2d657faae4a9ee Mon Sep 17 00:00:00 2001
> From: Elvis Dowson <elvis.dowson@gmail.com>
> Date: Mon, 27 Dec 2010 01:21:39 +0400
> Subject: [PATCH] ETM: Fix etm_probe and etb_probe section mismatch warnings in arch/arm/kernel/etm.c
>
> Fix the following section mismatch warning when building omap2plus_defconfig:
>
> WARNING: vmlinux.o(.data+0x1b70): Section mismatch in reference from the variable etb_driver to the function .init.text:etb_probe()
>
> WARNING: vmlinux.o(.data+0x1bbc): Section mismatch in reference from the variable etm_driver to the function .init.text:etm_probe()
>
> Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
> ---
> arch/arm/kernel/etm.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c
> index 11db628..e881a0d 100644
> --- a/arch/arm/kernel/etm.c
> +++ b/arch/arm/kernel/etm.c
> @@ -338,7 +338,7 @@ static struct miscdevice etb_miscdev = {
> .fops = &etb_fops,
> };
>
> -static int __init etb_probe(struct amba_device *dev, struct amba_id *id)
> +static int __devinit etb_probe(struct amba_device *dev, struct amba_id *id)
> {
> struct tracectx *t = &tracer;
> int ret = 0;
> @@ -530,7 +530,7 @@ static ssize_t trace_mode_store(struct kobject *kobj,
> static struct kobj_attribute trace_mode_attr =
> __ATTR(trace_mode, 0644, trace_mode_show, trace_mode_store);
>
> -static int __init etm_probe(struct amba_device *dev, struct amba_id *id)
> +static int __devinit etm_probe(struct amba_device *dev, struct amba_id *id)
> {
> struct tracectx *t = &tracer;
> int ret = 0;
--
Regards,
Nishanth Menon
next parent reply other threads:[~2011-01-03 14:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <EC93877F-CDA7-4231-9B4C-0F72623AAC8F@mac.com>
2011-01-03 14:23 ` Nishanth Menon [this message]
2011-01-03 19:02 ` [PATCH] ETM: Fix etm_probe and etb_probe section mismatch warnings in arch/arm/kernel/etm.c Tony Lindgren
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=4D21DBF8.1070504@ti.com \
--to=nm@ti.com \
--cc=elvis.dowson@mac.com \
--cc=linux-omap@vger.kernel.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