Thread (3 messages) flat view 3 messages, 2 authors, 2009-03-23

Re: [PATCH] cpumask: use mm_cpumask() wrapper: powerpc

From: Rusty Russell <hidden>
Date: 2009-03-23 05:43:22

On Friday 20 March 2009 17:06:17 Benjamin Herrenschmidt wrote:
On Mon, 2009-03-16 at 14:46 +1030, Rusty Russell wrote:
quoted
Makes code futureproof against the impending change to mm->cpu_vm_mask.
=20
It's also a chance to use the new cpumask_ ops which take a pointer
(the older ones are deprecated, but there's no hurry for arch code).
=20
Boom :-)
=20
In file included from /home/benh/linux-powerpc-test/arch/powerpc/kernel/v=
dso.c:30:
/home/benh/linux-powerpc-test/arch/powerpc/include/asm/mmu_context.h: In =
function =E2=80=98switch_mm=E2=80=99:
/home/benh/linux-powerpc-test/arch/powerpc/include/asm/mmu_context.h:34: =
error: implicit declaration of function =E2=80=98mm_cpumask=E2=80=99
/home/benh/linux-powerpc-test/arch/powerpc/include/asm/mmu_context.h:34: =
warning: passing argument 2 of =E2=80=98cpumask_set_cpu=E2=80=99 makes poin=
ter from integer without a cast

Hmm, I think you need to pull from Linus?  He only added the accessor
in "45e575ab (Rusty Russell       2009-03-12 14:35:44 -0600 281)"; you
can't get struct mm_struct without seeing mm_cpumask.

Thanks,
Rusty.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help