linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel.crashing.org>
To: Josh Boyer <jwboyer@charter.net>
Cc: linuxppc-dev@lists.linuxppc.org, linuxpcc-embedded@lists.linuxppc.org
Subject: Re: [PATCH] 2.6.0 compile fix for non 6xx machines
Date: Tue, 23 Dec 2003 08:51:34 -0700	[thread overview]
Message-ID: <20031223155134.GD26574@stop.crashing.org> (raw)
In-Reply-To: <1071790169.26979.18.camel@yoda>


On Thu, Dec 18, 2003 at 06:27:12PM -0600, Josh Boyer wrote:

>
> Hi,
>
> Don't know if this is fixed in the ppc trees or not so I'll send my
> patch anyway.  I got a link error when compiling the 2.6.0 kernel for
> the PPC 405 walnut board.  It appears it's because
> arch/ppc/kernel/ppc_ksyms.c does:
>
> extern long mol_trampoline;
> EXPORT_SYMBOL(mol_trampoline);
>
> mol_trampoline is only defined in arch/ppc/kernel/head.S.  Since the
> other head_Nxx.S files are used for non-6xx compiles it can't link.
> Below is a patch to fix the compile failure.
>
> Josh
>
> diff -Naur linux-2.6.0.orig/arch/ppc/kernel/ppc_ksyms.c
> linux-2.6.0/arch/ppc/kernel/ppc_ksyms.c
> --- linux-2.6.0.orig/arch/ppc/kernel/ppc_ksyms.c	2003-12-17
> 20:59:37.000000000 -0600
> +++ linux-2.6.0/arch/ppc/kernel/ppc_ksyms.c	2003-12-18
> 17:21:52.000000000 -0600
> @@ -367,8 +367,10 @@
>  EXPORT_SYMBOL(set_context);
>  EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
>  EXPORT_SYMBOL_NOVERS(disarm_decr);
> +#ifdef CONFIG_6xx
>  extern long mol_trampoline;
>  EXPORT_SYMBOL(mol_trampoline); /* For MOL */
> +#endif
>  #ifdef CONFIG_PPC_STD_MMU
>  EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
>  #ifdef CONFIG_SMP

It should actually go under PPC_STD_MMU, and I've got this fixed over in
http://stop.crashing.org:16080/~trini/, hopefully I can get some of
these patches into -mm now.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2003-12-23 15:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19  0:27 [PATCH] 2.6.0 compile fix for non 6xx machines Josh Boyer
2003-12-23 15:51 ` Tom Rini [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=20031223155134.GD26574@stop.crashing.org \
    --to=trini@kernel.crashing.org \
    --cc=jwboyer@charter.net \
    --cc=linuxpcc-embedded@lists.linuxppc.org \
    --cc=linuxppc-dev@lists.linuxppc.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).