Commit dc85e798 authored by David Gibson's avatar David Gibson Committed by Linus Torvalds

[PATCH] ppc64: fix declaration order in asm-ppc64/tlb.h

In asm-ppc64/tlb.h, tlb_flush() is defined as inline after the #include of
asm-generic/tlb.h which uses it, defeating the inline directive.  gcc-3.4
exposes this problem, causing a compile failure.  This patch reorders the
file to fix the problem.
Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7896d77b
...@@ -15,7 +15,14 @@ ...@@ -15,7 +15,14 @@
#include <asm/tlbflush.h> #include <asm/tlbflush.h>
struct mmu_gather; struct mmu_gather;
static inline void tlb_flush(struct mmu_gather *tlb);
extern void pte_free_finish(void);
static inline void tlb_flush(struct mmu_gather *tlb)
{
flush_tlb_pending();
pte_free_finish();
}
/* Avoid pulling in another include just for this */ /* Avoid pulling in another include just for this */
#define check_pgt_cache() do { } while (0) #define check_pgt_cache() do { } while (0)
...@@ -29,12 +36,4 @@ static inline void tlb_flush(struct mmu_gather *tlb); ...@@ -29,12 +36,4 @@ static inline void tlb_flush(struct mmu_gather *tlb);
#define __tlb_remove_tlb_entry(tlb, pte, address) do { } while (0) #define __tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
extern void pte_free_finish(void);
static inline void tlb_flush(struct mmu_gather *tlb)
{
flush_tlb_pending();
pte_free_finish();
}
#endif /* _PPC64_TLB_H */ #endif /* _PPC64_TLB_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment