more extern -> inline for gcc3

J . A . Magallon (jamagallon@able.es)
Fri, 3 Aug 2001 01:05:49 +0200


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/