From: Sam Ravnborg <sam@ravnborg.org>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Steven Rostedt" <rostedt@goodmis.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] trace/ring_buffer: fix section mismatch warning
Date: Sat, 21 Mar 2009 21:33:26 +0100 [thread overview]
Message-ID: <20090321203326.GA11182@uranus.ravnborg.org> (raw)
In-Reply-To: <20090321160102.7b5a9675@osiris.boeblingen.de.ibm.com>
On Sat, Mar 21, 2009 at 04:01:02PM +0100, Heiko Carstens wrote:
> On Sat, 21 Mar 2009 15:39:11 +0100
> Ingo Molnar <mingo@elte.hu> wrote:
> > > Section mismatch in reference from the function
> > > ring_buffer_alloc() to the function .cpuinit.text:rb_cpu_notify()
> > > The function ring_buffer_alloc() references the function __cpuinit
> > > rb_cpu_notify(). This is often because ring_buffer_alloc lacks a
> > > __cpuinit annotation or the annotation of rb_cpu_notify is wrong.
> > >
> > > This is a false positive since rb_cpu_notify gets only referenced
> > > if CONFIG_HOTPLUG_CPU=y. To get rid of the warning annotate
> > > ring_buffer_alloc with __ref.
> > >
> > > Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> > > ---
> > > kernel/trace/ring_buffer.c | 2 +-
> >
> > Frederic has beaten you to it narrowly:
> >
> > 09c9e84: tracing/ring-buffer: don't annotate rb_cpu_notify with __cpuinit
>
> Btw. that was the only section mismatch warning I got on linux-next
> with an allyesconfig on s390. We probably could enable the verbose
> section mismatch warnings at compile time?
>
> Sam?
When I get a bit more time (and a properly working setup again)
I will enable the verbose version.
But until I can dedicate enough time to support it I am not the
one to make it more verbose.
That may be in the timeframe of 2.6.30 but I'm not sure.
Sam
prev parent reply other threads:[~2009-03-21 20:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-21 11:41 [PATCH] trace/ring_buffer: fix section mismatch warning Heiko Carstens
2009-03-21 14:39 ` Ingo Molnar
2009-03-21 15:01 ` Heiko Carstens
2009-03-21 15:20 ` Ingo Molnar
2009-03-21 20:33 ` Sam Ravnborg [this message]
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=20090321203326.GA11182@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=fweisbec@gmail.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.