From: k_fukui@highway.ne.jp
To: linuxppc-dev@lists.linuxppc.org
Subject: problem prom.c
Date: Mon, 14 Jan 2002 06:05:15 +0900 (JST) [thread overview]
Message-ID: <200201132108.GAA26379@mail.highway.ne.jp> (raw)
Hi! Ben.
I got a compilation problem from your rsync tree(2.4.18.pre3).
Here is the error message.
I have questioon which is the patch correct?
Kaoru
gcc -D__KERNEL__ -I/usr/src/redhat/BUILD/linux/include -Wall -Wstrict-prototypes -Wno-trigra -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-flpe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DKBUILD_BASENAME=prom -c -o prom.o
prom.c: In function `prom_hold_cpus':
prom.c:300: `offset' undeclared (first use in this function)
prom.c:300: (Each undeclared identifier is reported only once
prom.c:300: for each function it appears in.)
make[1]: *** [prom.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/linux/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.55016 (%build)
diff -urN base/arch/ppc/kernel/prom.c fixed/arch/ppc/kernel/prom.c
--- base/arch/ppc/kernel/prom.c Fri Jan 11 22:40:35 2002
+++ fixed/arch/ppc/kernel/prom.c Mon Jan 14 05:50:14 2002
@@ -280,6 +280,7 @@
{
extern void __secondary_hold(void);
unsigned long i;
+ unsigned long offset = reloc_offset();
int cpu;
phandle node;
char type[16], *path;
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
reply other threads:[~2002-01-13 21:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200201132108.GAA26379@mail.highway.ne.jp \
--to=k_fukui@highway.ne.jp \
--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).