* more extern -> inline for gcc3
@ 2001-08-02 23:05 J . A . Magallon
2001-08-02 23:18 ` J . A . Magallon
0 siblings, 1 reply; 2+ messages in thread
From: J . A . Magallon @ 2001-08-02 23:05 UTC (permalink / raw)
To: Lista Linux-Kernel; +Cc: Alan Cox
Hi.
Just building 2.4.7-ac3 with gcc-3.0.1 snapshot from mandrake. Found another couple
of extern __inline__ -> static __inline__ changes needed (oh, it is only x86, I think
other archs will need the same):
--- linux-2.4.7-ac3/include/asm-i386/pgalloc.h.orig Fri Aug 3 00:56:20 2001
+++ linux-2.4.7-ac3/include/asm-i386/pgalloc.h Fri Aug 3 00:52:58 2001
@@ -29,7 +29,7 @@
extern void init_pae_pgd_cache(void);
-extern __inline__ pgd_t *get_pgd_slow(void)
+static inline pgd_t *get_pgd_slow(void)
{
int i;
pgd_t *pgd = kmem_cache_alloc(pae_pgd_cachep, GFP_KERNEL);
@@ -54,7 +54,7 @@
#else
-extern __inline__ pgd_t *get_pgd_slow(void)
+static inline pgd_t *get_pgd_slow(void)
{
pgd_t *pgd = (pgd_t *)__get_free_page(GFP_KERNEL);
@@ -67,7 +67,7 @@
#endif
-extern __inline__ pgd_t *get_pgd_fast(void)
+static inline pgd_t *get_pgd_fast(void)
{
unsigned long *ret;
@@ -80,14 +80,14 @@
return (pgd_t *)ret;
}
-extern __inline__ void free_pgd_fast(pgd_t *pgd)
+static inline void free_pgd_fast(pgd_t *pgd)
{
*(unsigned long *)pgd = (unsigned long) pgd_quicklist;
pgd_quicklist = (unsigned long *) pgd;
pgtable_cache_size++;
}
-extern __inline__ void free_pgd_slow(pgd_t *pgd)
+static inline void free_pgd_slow(pgd_t *pgd)
{
#if CONFIG_X86_PAE
int i;
@@ -122,14 +122,14 @@
return (pte_t *)ret;
}
-extern __inline__ void pte_free_fast(pte_t *pte)
+static inline void pte_free_fast(pte_t *pte)
{
*(unsigned long *)pte = (unsigned long) pte_quicklist;
pte_quicklist = (unsigned long *) pte;
pgtable_cache_size++;
}
-extern __inline__ void pte_free_slow(pte_t *pte)
+static inline void pte_free_slow(pte_t *pte)
{
free_page((unsigned long)pte);
}
--- linux-2.4.7-ac3/include/asm-i386/siginfo.h.orig Fri Aug 3 00:53:41 2001
+++ linux-2.4.7-ac3/include/asm-i386/siginfo.h Fri Aug 3 00:53:51 2001
@@ -216,7 +216,7 @@
#ifdef __KERNEL__
#include <linux/string.h>
-extern inline void copy_siginfo(siginfo_t *to, siginfo_t *from)
+static inline void copy_siginfo(siginfo_t *to, siginfo_t *from)
{
if (from->si_code < 0)
memcpy(to, from, sizeof(siginfo_t));
--
J.A. Magallon # Let the source be with you...
mailto:jamagallon@able.es
Mandrake Linux release 8.1 (Cooker) for i586
Linux werewolf 2.4.7-ac3 #1 SMP Mon Jul 30 16:39:36 CEST 2001 i686
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: more extern -> inline for gcc3
2001-08-02 23:05 more extern -> inline for gcc3 J . A . Magallon
@ 2001-08-02 23:18 ` J . A . Magallon
0 siblings, 0 replies; 2+ messages in thread
From: J . A . Magallon @ 2001-08-02 23:18 UTC (permalink / raw)
To: J . A . Magallon; +Cc: Lista Linux-Kernel, Alan Cox
On 20010803 J . A . Magallon wrote:
>Hi.
>
>Just building 2.4.7-ac3 with gcc-3.0.1 snapshot from mandrake. Found another couple
>of extern __inline__ -> static __inline__ changes needed (oh, it is only x86, I think
>other archs will need the same):
>
Well, I relized it is just the 00_gcc-30 from Andrea..
Please, include this is next patch set...
--
J.A. Magallon # Let the source be with you...
mailto:jamagallon@able.es
Mandrake Linux release 8.1 (Cooker) for i586
Linux werewolf 2.4.7-ac3 #1 SMP Mon Jul 30 16:39:36 CEST 2001 i686
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-02 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02 23:05 more extern -> inline for gcc3 J . A . Magallon
2001-08-02 23:18 ` J . A . Magallon
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).