* Errors in arch/ppc/boot/prep/misc.c
@ 2004-01-09 17:49 Ingvar Hagelund
0 siblings, 0 replies; only message in thread
From: Ingvar Hagelund @ 2004-01-09 17:49 UTC (permalink / raw)
To: linuxppc-dev, mgreer
Hello, list
I recently rsynced the tree from source.mvista.com::linuxppc_2_4_devel,
and tried to build it for my good old 7248 (PReP). It didn't work. I got
misc.c: In function `decompress_kernel':
misc.c:158: `OFW_interface' undeclared (first use in this function)
There seems to be a small error in the prototype declaration of
decompress_kernel(...). The trivial patch below fixes this.
Getting past this hurdle, I got another error:
misc.o(.text+0x4b0): In function `decompress_kernel':
: undefined reference to `mpc10x_get_mem_size'
Having one more look at misc.c, I see that it tries to
#include "mpc10x.h"
but there is no mpc10x.h in arch/ppc/boot/prep (and according to the
includes misc.c, others seem to be missing too).
There does exist an include/asm-ppc/mpc10x.h, but it has a different
prototype. Commenting out the actual function call (lines 285-290, "See
if we are on an MPC10x.") makes the kernel build complete. Trying to
make the prototype match the one in /asm-ppc/mpc10x.h, and including
that file instead leads nowhere.
I guess someone forgot to upload his version of the file.
Ingvar
diff -u -r linux-2.4_ppc_dev.orig/arch/ppc/boot/prep/misc.c
linux-2.4_ppc_dev/arch/ppc/boot/prep/misc.c
--- linux-2.4_ppc_dev.orig/arch/ppc/boot/prep/misc.c 2004-01-09
17:55:19.000000000 +0100
+++ linux-2.4_ppc_dev/arch/ppc/boot/prep/misc.c 2004-01-09
17:57:01.000000000 +0100
@@ -139,7 +139,7 @@
unsigned long
decompress_kernel(unsigned long load_addr, int num_words, unsigned long
cksum,
- RESIDUAL *residual)
+ RESIDUAL *residual, void *OFW_interface)
{
#ifdef INTERACTIVE_CONSOLE
int timer = 0;
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-09 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-09 17:49 Errors in arch/ppc/boot/prep/misc.c Ingvar Hagelund
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).