From 8e9bd4e6f02016e04b60ae3330a3731c2f30d516 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:31:09 -0800 Subject: [PATCH] [PATCH] Remove useless argument from __ste_allocate() From: David Gibson In the current ppc64 code the function __ste_allocate() in arch/ppc64/mm/stab.c takes a context parameter which is never used. This patch removes it. --- arch/ppc64/kernel/stab.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/ppc64/kernel/stab.c b/arch/ppc64/kernel/stab.c index 65b340d3e08ee..b54345c8e6fed 100644 --- a/arch/ppc64/kernel/stab.c +++ b/arch/ppc64/kernel/stab.c @@ -141,8 +141,7 @@ int make_ste(unsigned long stab, unsigned long esid, unsigned long vsid) return (global_entry | (castout_entry & 0x7)); } -static inline void __ste_allocate(unsigned long esid, unsigned long vsid, - mm_context_t context) +static inline void __ste_allocate(unsigned long esid, unsigned long vsid) { unsigned char stab_entry; unsigned long *offset; @@ -185,7 +184,7 @@ int ste_allocate(unsigned long ea) } esid = GET_ESID(ea); - __ste_allocate(esid, vsid, context); + __ste_allocate(esid, vsid); /* Order update */ asm volatile("sync":::"memory"); @@ -215,7 +214,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm) if (!IS_VALID_EA(pc) || (REGION_ID(pc) >= KERNEL_REGION_ID)) return; vsid = get_vsid(mm->context, pc); - __ste_allocate(pc_esid, vsid, mm->context); + __ste_allocate(pc_esid, vsid); if (pc_esid == stack_esid) return; @@ -223,7 +222,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm) if (!IS_VALID_EA(stack) || (REGION_ID(stack) >= KERNEL_REGION_ID)) return; vsid = get_vsid(mm->context, stack); - __ste_allocate(stack_esid, vsid, mm->context); + __ste_allocate(stack_esid, vsid); if (pc_esid == unmapped_base_esid || stack_esid == unmapped_base_esid) return; @@ -232,7 +231,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm) (REGION_ID(unmapped_base) >= KERNEL_REGION_ID)) return; vsid = get_vsid(mm->context, unmapped_base); - __ste_allocate(unmapped_base_esid, vsid, mm->context); + __ste_allocate(unmapped_base_esid, vsid); /* Order update */ asm volatile("sync" : : : "memory"); -- 2.53.0