All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: David Miller <davem@davemloft.net>,
	cw@f00f.org, linux-kernel@vger.kernel.org
Subject: Re: (hacky) [PATCH] silence MODPOST section mismatch warnings
Date: Fri, 11 May 2007 00:16:59 +0200	[thread overview]
Message-ID: <20070510221659.GA23915@uranus.ravnborg.org> (raw)
In-Reply-To: <20070510215920.GH29713@flint.arm.linux.org.uk>

On Thu, May 10, 2007 at 10:59:20PM +0100, Russell King wrote:
> On Thu, May 10, 2007 at 02:07:25PM -0700, David Miller wrote:
> > From: Russell King <rmk+lkml@arm.linux.org.uk>
> > Date: Thu, 10 May 2007 21:54:27 +0100
> > 
> > > I've not had one accurate one on ARM yet.
> > > 
> > > Here's another example:
> > > 
> > > WARNING: init/built-in.o - Section mismatch: reference to .init.text:
> > >  from .text between 'rest_init' (at offset 0x4c) and 'run_init_process'
> > > 
> > > from init/main.c:
> > > 
> > > static void noinline rest_init(void)
> > >         __releases(kernel_lock)
> > > 
> > > static void run_init_process(char *init_filename)
> > > 
> > > Clearly, it just does _not_ work.
> > 
> > Russell, the symbols are where the reference to an .init.text
> > section are coming from, they are not the .init.text function
> > being referenced itself.
> > 
> > It is saying that something between rest_init and run_init_processes,
> > which are not .init.text, are referencing an .init.text object.
> 
> I'd like to make a suggestion to make the wording of the warning
> clearer:
> 
> WARNING: init/built-in.o(.text+0x4c): section mismatch: reference to
>  .init.text:blah (between 'rest_init' and 'run_init_process')
> 
> I think this would remove the confusion - the primary information
> relating to where the reference is located is contained together
> ("init/built-in.o(.text+0x4c)") and the confusing "between" clause
> which seems to only be a hint becomes entirely secondary.
> 
> Moreover, it's similar to binutils warnings - which are of the form:
> 
> file:(section+offset): message

I like the new format - thanks!
Did you drop the ':' after the file on purpose?

[I am not familiar with this particular binutils warning so I did not
know an easy way to provoke it]

PS. Will apply the path you submitted in next mail.

	Sam

  parent reply	other threads:[~2007-05-10 22:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10 20:34 (hacky) [PATCH] silence MODPOST section mismatch warnings Chris Wedgwood
2007-05-10 20:40 ` Russell King
2007-05-10 21:01   ` David Miller
2007-05-10 21:14   ` Sam Ravnborg
2007-05-10 20:51 ` David Miller
2007-05-10 20:54   ` Russell King
2007-05-10 21:01     ` Sam Ravnborg
2007-05-11  6:28       ` Satyam Sharma
2007-05-10 21:07     ` David Miller
2007-05-10 21:23       ` Russell King
2007-05-10 21:59       ` Russell King
2007-05-10 22:03         ` [PATCH] Make modpost section warnings clearer Russell King
2007-05-10 22:08           ` David Miller
2007-05-10 22:16         ` Sam Ravnborg [this message]
2007-05-10 22:18           ` (hacky) [PATCH] silence MODPOST section mismatch warnings Russell King
2007-05-11  4:12             ` Sam Ravnborg
2007-05-11 18:54     ` Sam Ravnborg
2007-05-11 18:57       ` Russell King
2007-05-10 21:19 ` Sam Ravnborg

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=20070510221659.GA23915@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=cw@f00f.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@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 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.