From: Christian <evilninja@gmx•net>
To: linuxppc-dev@ozlabs•org
Cc: Dan Kegel <dank@kegel•com>
Subject: Re: gcc4 compile fixes
Date: Mon, 04 Apr 2005 15:57:24 +0200 [thread overview]
Message-ID: <425147C4.10906@gmx.net> (raw)
In-Reply-To: <42509DB9.4090609@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 850 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
replying to myself:
Christian wrote:
> now it [1] fails with:
>
> In file included from arch/ppc/kernel/time.c:68:
> include/asm/time.h:61: warning: type qualifiers ignored on function return
> type
[...]
..and there were other error messages too. not knowing a *bit* of C, i was
able to do minor alterations which i deduced from gcc's error messages.
now compiling for ppc604 (PReP) with gcc4 succeeds.
thank you for your concern,
Christian.
- --
BOFH excuse #403:
Sysadmin didn't hear pager go off due to loud music from bar-room speakers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCUUfEC/PVm5+NVoYRAiMYAKCVru912jky9ctrnAhBe+ukymReQgCg9z6Y
YSNKwksGyXiDKgxpvGhO1wM=
=WSll
-----END PGP SIGNATURE-----
[-- Attachment #2: 2.6.11.6.gcc4_compile_fixes-take2.diff --]
[-- Type: text/plain, Size: 1770 bytes --]
--- linux-2.6/arch/ppc/syslib/open_pic_defs.h.orig 2005-04-04 15:01:39.581824538 +0200
+++ linux-2.6/arch/ppc/syslib/open_pic_defs.h 2005-04-04 15:01:52.679696972 +0200
@@ -172,7 +172,7 @@
OpenPIC_Processor Processor[OPENPIC_MAX_PROCESSORS];
};
-extern volatile struct OpenPIC __iomem *OpenPIC;
+static volatile struct OpenPIC __iomem *OpenPIC;
/*
--- linux-2.6/arch/ppc/kernel/time.c.orig 2005-04-04 15:12:41.963801575 +0200
+++ linux-2.6/arch/ppc/kernel/time.c 2005-04-04 15:12:56.390559608 +0200
@@ -89,7 +89,7 @@
extern unsigned long wall_jiffies;
-static long time_offset;
+extern long time_offset;
DEFINE_SPINLOCK(rtc_lock);
--- linux-2.6/include/asm-ppc/time.h.orig 2005-04-04 14:47:55.526765569 +0200
+++ linux-2.6/include/asm-ppc/time.h 2005-04-04 14:49:59.075129571 +0200
@@ -58,7 +58,7 @@
/* Accessor functions for the timebase (RTC on 601) registers. */
/* If one day CONFIG_POWER is added just define __USE_RTC as 1 */
#ifdef CONFIG_6xx
-extern __inline__ int const __USE_RTC(void) {
+static __inline__ int const __USE_RTC(void) {
return (mfspr(SPRN_PVR)>>16) == 1;
}
#else
@@ -92,7 +92,7 @@
mtspr(SPRN_TBWL, lower);
}
-extern __inline__ unsigned long get_rtcl(void) {
+static __inline__ unsigned long get_rtcl(void) {
unsigned long rtcl;
asm volatile("mfrtcl %0" : "=r" (rtcl));
return rtcl;
--- linux-2.6/include/asm-ppc/prom.h.orig 2005-04-04 14:56:50.014752710 +0200
+++ linux-2.6/include/asm-ppc/prom.h 2005-04-04 14:59:59.805414063 +0200
@@ -13,8 +13,8 @@
typedef void *phandle;
typedef void *ihandle;
-extern char *prom_display_paths[];
-extern unsigned int prom_num_displays;
+static char *prom_display_paths[];
+static unsigned int prom_num_displays;
struct address_range {
unsigned int space;
next prev parent reply other threads:[~2005-04-04 13:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-19 0:55 gcc4 compile fixes Dan Kegel
2005-04-04 1:51 ` Christian
2005-04-04 13:57 ` Christian [this message]
2005-04-04 14:10 ` Dan Kegel
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=425147C4.10906@gmx.net \
--to=evilninja@gmx$(echo .)net \
--cc=dank@kegel$(echo .)com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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