Remove useless argument from __ste_allocate()
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 +5 -6
@@ -142,8 +142,7 @@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;
@@ -186,7 +185,7 @@ } esid =GET_ESID (ea); -__ste_allocate (esid, vsid, context); +__ste_allocate (esid, vsid);/* Order update */ asmvolatile ("sync" :::"memory" );
@@ -216,7 +215,7 @@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 ;
@@ -224,7 +223,7 @@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 ;
@@ -233,7 +232,7 @@ (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 */ asmvolatile ("sync" : : :"memory" );
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