Skip to contentSkip to conversation

UML: Fix some apparent bitrot in mmu_context.h

PATCH In review Paul Menage 2 participants 2 messages Jun 25, 2009 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UML: Fix some apparent bitrot in mmu_context.h

UML: Fix some apparent bitrot in mmu_context.h

- cpumask_clear() -> cpumask_clear_cpu()

--

Fixes the following compile errors:

arch/um/include/asm/mmu_context.h: In function 'switch_mm':
arch/um/include/asm/mmu_context.h:38: warning: passing argument 1 of 'cpumask_clear' makes pointer from integer without a cast
arch/um/include/asm/mmu_context.h:38: error: too many arguments to function 'cpumask_clear'

---

 arch/um/include/asm/mmu_context.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/um/include/asm/mmu_context.h +1 -1
index edd719e..34d8130 100644
@@ -35,7 +35,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
 	unsigned cpu = smp_processor_id();
 
 	if(prev != next){
-		cpumask_clear(cpu, mm_cpumask(prev));
+		cpumask_clear_cpu(cpu, mm_cpumask(prev));
 		cpumask_set_cpu(cpu, mm_cpumask(next));
 		if(next != &init_mm)
 			__switch_mm(&next->context.id);
#1 lore raw
Quoted 8 lines · Paul Menage

UML: Fix some apparent bitrot in mmu_context.h

- cpumask_clear() -> cpumask_clear_cpu()

--

Quoted 7 lines

Fixes the following compile errors:

arch/um/include/asm/mmu_context.h: In function 'switch_mm':
arch/um/include/asm/mmu_context.h:38: warning: passing argument 1 of 'cpumask_clear' makes pointer from integer without a cast arch/um/include/asm/mmu_context.h:38: error: too many arguments to function 'cpumask_clear'

Thanks, that was a bogosity in my patch (not in mainline, may not be now merge window closed).

I've fixed it now.

Thanks!
Rusty.