Fix declaration order in asm-ppc64/tlb.h
Andrew, please apply:
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 David Gibson <[email protected]>
include/asm-ppc64/tlb.h +8 -9
@@ -15,7 +15,14 @@#include <asm/tlbflush.h> 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 */ #define check_pgt_cache () do { } while (0)
@@ -29,12 +36,4 @@#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 */
Signature · 4 lines
David Gibson | For every complex problem there is a david AT gibson.dropbear.id.au | solution which is simple, neat and | wrong. http://www.ozlabs.org/people/dgibson