linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Christoph Lameter <clameter@sgi.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	dmitri.vorobiev@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: 2.6.25-rc8-mm1 (mips build failure)
Date: Thu, 3 Apr 2008 17:02:30 +0100	[thread overview]
Message-ID: <20080403160230.GA17771@linux-mips.org> (raw)
In-Reply-To: <20080402190623.GA23651@uranus.ravnborg.org>

On Wed, Apr 02, 2008 at 09:06:23PM +0200, Sam Ravnborg wrote:

> > > i386 generates
> > > 
> > > ->NR_PAGEFLAGS $18 __NR_PAGEFLAGS       #
> > 
> > > mips generates
> > > 
> > > ->NR_PAGEFLAGS 18 __NR_PAGEFLAGS         #
> > 
> > For some reason the asm-offset.c for mips generates it differently and the 
> > sed expression in kbuild is different. So it does not match.
> 
> When the asm-offset stuff were consolidated the mips variant
> did not match the others.
> I do not recall if I ever tried this on a mips tool-chain and as
> my dev box is busted atm I cannot even test it out now.
> 
> I would be happy if we could kill the MIPS specific sed expression
> in the top-level Kbuild file.
> 
> Ralf - can you take a look at this and see if mips really generates
> different assembler syntax which warrants the different sed expression.
> 
> If mips really needs a different sed expression then we should adjust
> it so the output is similar to the other archs.

The reason for MIPS doing things a little different is that the resulting
<asm/asm-offsets.h> doesn't look like machine generated jibberish.  So
how about below patch which combines the two sed expressions.

  Ralf

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

diff --git a/Kbuild b/Kbuild
index 7136de7..2bd4a3c 100644
--- a/Kbuild
+++ b/Kbuild
@@ -52,10 +52,8 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s
 
 # Default sed regexp - multiline due to syntax constraints
 define sed-y
-	"/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
+	"/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}; /^@@@/{s/^@@@//; s/ \#.*\$$//; p;};"
 endef
-# Override default regexp for specific architectures
-sed-$(CONFIG_MIPS) := "/^@@@/{s/^@@@//; s/ \#.*\$$//; p;}"
 
 quiet_cmd_offsets = GEN     $@
 define cmd_offsets

  reply	other threads:[~2008-04-03 17:00 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-02  4:32 2.6.25-rc8-mm1 Andrew Morton
2008-04-02  5:40 ` 2.6.25-rc8-mm1 Dmitri Vorobiev
2008-04-02  6:03   ` 2.6.25-rc8-mm1 Andrew Morton
2008-04-02 17:33     ` 2.6.25-rc8-mm1 (mips build failure) Christoph Lameter
2008-04-02 18:29       ` Andrew Morton
2008-04-02 18:33         ` Christoph Lameter
2008-04-02 19:06           ` Sam Ravnborg
2008-04-03 16:02             ` Ralf Baechle [this message]
2008-04-03 22:17               ` Christoph Lameter
2008-04-03 23:26                 ` Dmitri Vorobiev
2008-04-04 10:24                 ` Ralf Baechle
2008-04-04 17:36                   ` Christoph Lameter
2008-04-04 17:50                     ` Christoph Lameter
2008-04-02  6:04 ` 2.6.25-rc8-mm1 Valdis.Kletnieks
2008-04-02  6:15   ` 2.6.25-rc8-mm1 Andrew Morton
2008-04-02  6:25 ` [BUG] 2.6.25-rc8-mm1 kernel panic while bootup on powerpc Kamalesh Babulal
2008-04-02  6:39   ` Andrew Morton
2008-04-02  7:08     ` Kamalesh Babulal
2008-04-02  7:17       ` Michael Ellerman
2008-04-02 17:09         ` Kamalesh Babulal
2008-04-02 18:15           ` Badari Pulavarty
2008-04-02 19:22         ` Badari Pulavarty
2008-04-02 21:57           ` Yinghai Lu
2008-04-02 22:24           ` Yinghai Lu
2008-04-04  9:24     ` Andy Whitcroft
2008-04-02  9:02 ` [BUILD_FAILURE] 2.6.25-rc8-mm1 build failure on x86_64 with randconfig Kamalesh Babulal
2008-04-02 10:49 ` 2.6.25-rc8-mm1 Miles Lane
2008-04-02 11:08   ` 2.6.25-rc8-mm1 Valdis.Kletnieks
2008-04-02 16:58   ` 2.6.25-rc8-mm1 Chatre, Reinette
2008-04-02 19:15     ` 2.6.25-rc8-mm1 Valdis.Kletnieks
2008-04-02 16:20 ` 2.6.25-rc8-mm1 sparc64 build problem: size of array 'type name' is negative Mariusz Kozlowski
2008-04-02 16:30   ` Andrew Morton
2008-04-02 19:12 ` 2.6.25-rc8-mm1 - BUG in fs/jbd/transaction.c Valdis.Kletnieks
2008-04-02 19:27   ` Josef Bacik
2008-04-02 19:39     ` Andrew Morton
2008-04-02 19:41       ` Josef Bacik
2008-04-03 18:18       ` Stephen Smalley
2008-04-03 23:02         ` James Morris
2008-04-04 12:46           ` Stephen Smalley
2008-04-06 23:54             ` James Morris
2008-04-04 10:15         ` Jan Kara
2008-04-04 12:53           ` 2.6.25-rc8-mm1 - BUG in fs/jbd/transaction.c' Josef Bacik
2008-04-03 18:25     ` 2.6.25-rc8-mm1 - BUG in fs/jbd/transaction.c Stephen Smalley
2008-04-02 19:30   ` Andrew Morton
2008-04-03  8:57     ` Jan Kara
2008-04-03 12:11 ` 2.6.25-rc8-mm1 Dave Airlie
2008-04-03 16:59   ` 2.6.25-rc8-mm1 Andrew Morton
2008-04-03 23:08 ` 2.6.25-rc8-mm1: Intel SATA boot failure Tilman Schmidt
2008-04-03 23:17   ` Andrew Morton
2008-04-09 14:29     ` Tilman Schmidt
2008-04-14  0:28     ` Tilman Schmidt
2008-04-14  2:05       ` Andrew Morton
2008-04-15 23:33       ` Tilman Schmidt
2008-04-04 20:16 ` usb unbind/bind => WARNING at fs/sysfs/dir.c [Was: 2.6.25-rc8-mm1] Jiri Slaby
2008-04-04 20:51   ` Greg KH
2008-04-04 21:23     ` Alan Stern
2008-04-05  3:46       ` Alan Stern
2008-04-05  4:37         ` Greg KH
2008-04-05 14:16           ` Alan Stern
2008-04-05  8:17         ` Jiri Slaby
2008-04-07  6:21 ` 2.6.25-rc8-mm1 - BUG: scheduling while atomic: swapper/0/0xffffffff Valdis.Kletnieks
2008-04-07  6:48   ` Andrew Morton

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=20080403160230.GA17771@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=dmitri.vorobiev@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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).