mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: jhf@rivenstone.net (Joseph Fannin)
To: Albert Herranz <albert_herranz@yahoo.es>
Cc: Roland McGrath <roland@redhat.com>,
	akpm@osdl.org, linux-kernel@vger.kernel.org,
	benh@kernel.crashing.org
Subject: Re: 2.6.9-rc1-mm1 ppc build broken
Date: Sat, 4 Sep 2004 16:37:15 -0400	[thread overview]
Message-ID: <20040904203715.GA3049@samarkand.rivenstone.net> (raw)
In-Reply-To: <20040831105118.85292.qmail@web52306.mail.yahoo.com>

hOn Tue, Aug 31, 2004 at 12:51:18PM +0200, Albert Herranz wrote:

[[ CC'ing BenH since lists.linuxppc.org doesn't seem to resolve ]]

[ 2.6.9-rc1-mm1 ]

> > This is creating a circularity on ppc that others
> > don't have apparently.
> > 
> > >   CC      arch/ppc/kernel/asm-offsets.s
> > > In file included from include/linux/mm.h:4,
> > 
> > >                  from include/asm/io.h:7,
> > >                  from include/linux/timex.h:61,
> > 
> > This #include link here is the issue.  Vanilla
> > linux/timex.h does not have
> > the #include <asm/io.h>.  On other machines,
> > <asm/io.h> does not include
> > <linux/mm.h>, so you don't get into the problem with
> > sched.h.
> 
> Thanks.
> 
> The #include <asm/io.h> comes from bk-ia64.patch time
> interpolation logic patch from Cristoph Lameter.
> 
> I've checked that at least for the embedded port I'm
> working on the linux/mm.h is *not* a must on ppc
> asm/io.h so we can get rid of it (commented out).
> Maybe this is also true for the rest of ppc platforms.
> 
> Now 2.6.9-rc1-mm1 builds fine.

    This is still broken in -mm3.  This fix works for my powermac too,
except that arch/ppc/syslib/open_pic.c misses errno.h when it does not
get it through mm.h.  I can't speak for other platforms, but I'll
include the patch.

In case it matters:

Signed-off-by: Joseph Fannin <jhf@rivenstone.net>

--
Joseph Fannin
jhf@rivenstone.net

"That's all I have to say about that." -- Forrest Gump.

diff -aurN a/arch/ppc/syslib/open_pic.c b/arch/ppc/syslib/open_pic.c
--- a/arch/ppc/syslib/open_pic.c	2004-09-04 15:43:05.035636648 -0400
+++ b/arch/ppc/syslib/open_pic.c	2004-09-04 15:47:14.260748672 -0400
@@ -16,6 +16,7 @@
 #include <linux/irq.h>
 #include <linux/interrupt.h>
 #include <linux/sysdev.h>
+#include <linux/errno.h>
 #include <asm/ptrace.h>
 #include <asm/signal.h>
 #include <asm/io.h>
diff -aurN a/include/asm-ppc/io.h b/include/asm-ppc/io.h
--- a/include/asm-ppc/io.h	2004-08-22 22:48:30.000000000 -0400
+++ b/include/asm-ppc/io.h	2004-09-04 15:45:19.641173496 -0400
@@ -4,7 +4,6 @@
 
 #include <linux/config.h>
 #include <linux/types.h>
-#include <linux/mm.h>
 
 #include <asm/page.h>
 #include <asm/byteorder.h>

  reply	other threads:[~2004-09-04 20:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-30 23:41 Albert Herranz
2004-08-30 23:48 ` Roland McGrath
2004-08-31 10:51   ` Albert Herranz
2004-09-04 20:37     ` Joseph Fannin [this message]
2004-09-05 21:53       ` Andrew Morton
2004-09-06  1:43         ` Joseph Fannin
2004-09-06 11:59           ` Albert Herranz

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=20040904203715.GA3049@samarkand.rivenstone.net \
    --to=jhf@rivenstone.net \
    --cc=akpm@osdl.org \
    --cc=albert_herranz@yahoo.es \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.com \
    /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

all inboxes | Powered by JetHome®