Commit b21d4b08b6686fa13bf9d4cae1ae08cb23ea3d53

Authored by Jeff Dike
Committed by Linus Torvalds
1 parent 3cdaf45578

uml: fix inlines

"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>

Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff

include/asm-um/pgalloc.h
... ... @@ -42,7 +42,7 @@
42 42  
43 43 #ifdef CONFIG_3_LEVEL_PGTABLES
44 44  
45   -extern __inline__ void pmd_free(pmd_t *pmd)
  45 +static inline void pmd_free(pmd_t *pmd)
46 46 {
47 47 free_page((unsigned long)pmd);
48 48 }
include/asm-um/pgtable-3level.h
... ... @@ -69,7 +69,7 @@
69 69 return pmd;
70 70 }
71 71  
72   -extern inline void pud_clear (pud_t *pud)
  72 +static inline void pud_clear (pud_t *pud)
73 73 {
74 74 set_pud(pud, __pud(0));
75 75 }
include/asm-um/processor-x86_64.h
... ... @@ -18,7 +18,7 @@
18 18 };
19 19  
20 20 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
21   -extern inline void rep_nop(void)
  21 +static inline void rep_nop(void)
22 22 {
23 23 __asm__ __volatile__("rep;nop": : :"memory");
24 24 }
include/asm-um/smp.h
... ... @@ -18,7 +18,7 @@
18 18 extern int ncpus;
19 19  
20 20  
21   -extern inline void smp_cpus_done(unsigned int maxcpus)
  21 +static inline void smp_cpus_done(unsigned int maxcpus)
22 22 {
23 23 }
24 24