Commit 6551182b authored by Paul Mackerras's avatar Paul Mackerras

PPC32: minor cosmetic changes, eliminate compile warnings

parent f38e3c34
......@@ -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;
......
......@@ -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__ */
......@@ -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__ */
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