]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
uml: fix inlines
authorJeff Dike <jdike@addtoit.com>
Tue, 16 Oct 2007 08:27:10 +0000 (01:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:06 +0000 (09:43 -0700)
"extern inline" will have different semantics with gcc 4.3.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-um/pgalloc.h
include/asm-um/pgtable-3level.h
include/asm-um/processor-x86_64.h
include/asm-um/smp.h

index 34ab268ef40e6f5453662ce1b1b00a08429f734b..14904876e8fbd8deaf8b8ccc7e819af60f098514 100644 (file)
@@ -42,7 +42,7 @@ static inline void pte_free(struct page *pte)
 
 #ifdef CONFIG_3_LEVEL_PGTABLES
 
-extern __inline__ void pmd_free(pmd_t *pmd)
+static inline void pmd_free(pmd_t *pmd)
 {
        free_page((unsigned long)pmd);
 }
index ca0c2a92a112ebcccf8912338c6e7c187408122e..aa82b88db805bafd93224590924a3883084e05ef 100644 (file)
@@ -69,7 +69,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
         return pmd;
 }
 
-extern inline void pud_clear (pud_t *pud)
+static inline void pud_clear (pud_t *pud)
 {
         set_pud(pud, __pud(0));
 }
index 31c2d4d685bd7692677db195bb4738642dea8459..d946bf2d334a5fd08b18c0513d1cdb4571c653ac 100644 (file)
@@ -18,7 +18,7 @@ struct arch_thread {
 };
 
 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
-extern inline void rep_nop(void)
+static inline void rep_nop(void)
 {
        __asm__ __volatile__("rep;nop": : :"memory");
 }
index 84f8cf29324e8950fd941b38a98fe76eea3a463f..f27a963131741ba935f80ec424c9b4c413ae63d4 100644 (file)
@@ -18,7 +18,7 @@ extern int hard_smp_processor_id(void);
 extern int ncpus;
 
 
-extern inline void smp_cpus_done(unsigned int maxcpus)
+static inline void smp_cpus_done(unsigned int maxcpus)
 {
 }