public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] Use target filename in BUG_ON and friends
Date: Sat, 8 Jul 2006 22:50:53 +0200	[thread overview]
Message-ID: <20060708205053.GA13124@mars.ravnborg.org> (raw)
In-Reply-To: <p73sllcnqlk.fsf@verdi.suse.de>

On Sat, Jul 08, 2006 at 04:00:55PM +0200, Andi Kleen wrote:
> Sam Ravnborg <sam@ravnborg.org> writes:
> > 
> > If gcc could be teached not to use full path for __FILE__ this would be
> > an even better fix, but with current make O=.. support I have not found a
> > way to do so.
> 
> I suppose you could ask the gcc people? 
This is more a kbuild issue. gcc supply the filename given on the
commandline and when using vpath support in make the input files have
absolute path resulting in gcc using absolute paths to __FILE__.
The only real fix I think would be to teach kbuild to use
top-og-source-tree as root when building the kernel. And that will break
a lot if this is changed.

	Sam

  reply	other threads:[~2006-07-08 20:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-08  8:47 [RFC] Use target filename in BUG_ON and friends Sam Ravnborg
2006-07-08 14:00 ` Andi Kleen
2006-07-08 20:50   ` Sam Ravnborg [this message]
2006-07-08 16:45 ` Milton Miller
2006-07-08 20:57   ` Sam Ravnborg
2006-07-10  0:03     ` Andi Kleen
2006-07-23 17:58       ` 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=20060708205053.GA13124@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=ak@suse.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox