]> git.hungrycats.org Git - linux/commitdiff
PPC32: minor cosmetic changes, eliminate compile warnings
authorPaul Mackerras <paulus@samba.org>
Fri, 10 May 2002 03:11:49 +0000 (13:11 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 May 2002 03:11:49 +0000 (13:11 +1000)
arch/ppc/mm/mmu_context.c
include/asm-ppc/cacheflush.h
include/asm-ppc/tlbflush.h

index ba6784ec812e31b02f823fc092307471097fba6e..3b61769931df027f826fd1bce9bd9efab538372f 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/init.h>
 
 #include <asm/mmu_context.h>
+#include <asm/tlbflush.h>
 
 mm_context_t next_mmu_context;
 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1];
@@ -46,7 +47,8 @@ void steal_context(void);
 /*
  * Initialize the context management stuff.
  */
-void __init mmu_context_init(void)
+void __init
+mmu_context_init(void)
 {
        /*
         * Some processors have too few contexts to reserve one for
@@ -74,7 +76,8 @@ void __init mmu_context_init(void)
  * place to implement an LRU scheme if anyone was motivated to do it.
  *  -- paulus
  */
-void steal_context(void)
+void
+steal_context(void)
 {
        struct mm_struct *mm;
 
index f6715fe86d34f2cf3feeeae466f0692e57ccac88..e7918be751ee72433b9d04ce7299947c766803f8 100644 (file)
@@ -37,5 +37,5 @@ extern void flush_icache_user_range(struct vm_area_struct *vma,
 extern void __flush_dcache_icache(void *page_va);
 extern void __flush_dcache_icache_phys(unsigned long physaddr);
 
-#endif _PPC_CACHEFLUSH_H
-#endif __KERNEL__
+#endif /* _PPC_CACHEFLUSH_H */
+#endif /* __KERNEL__ */
index 8d589d1e3a05a42fc456cb5a810302cf495eec1c..83e6f1ae6c35171df7988978c1e54cd3c29b0b55 100644 (file)
@@ -30,7 +30,7 @@ static inline void flush_tlb_mm(struct mm_struct *mm)
 static inline void flush_tlb_page(struct vm_area_struct *vma,
                                unsigned long vmaddr)
        { _tlbie(vmaddr); }
-static inline void flush_tlb_range(struct mm_struct *mm,
+static inline void flush_tlb_range(struct vm_area_struct *vma,
                                unsigned long start, unsigned long end)
        { __tlbia(); }
 static inline void flush_tlb_kernel_range(unsigned long start,
@@ -86,5 +86,5 @@ static inline void flush_tlb_pgtables(struct mm_struct *mm,
 {
 }
 
-#endif _PPC_TLBFLUSH_H
-#endif __KERNEL__
+#endif /* _PPC_TLBFLUSH_H */
+#endif /*__KERNEL__ */