Re: [PATCH 6/7] arch/sh/kernel: Use set_cpus_allowed_ptr

From: Paul Mundt
Date: Sun Mar 28 2010 - 23:17:42 EST


On Fri, Mar 26, 2010 at 11:03:49PM +0100, Julia Lawall wrote:
> From: Julia Lawall <julia@xxxxxxx>
>
> Use set_cpus_allowed_ptr rather than set_cpus_allowed.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> expression E1,E2;
> @@
>
> - set_cpus_allowed(E1, cpumask_of_cpu(E2))
> + set_cpus_allowed_ptr(E1, cpumask_of(E2))
>
> @@
> expression E;
> identifier I;
> @@
>
> - set_cpus_allowed(E, I)
> + set_cpus_allowed_ptr(E, &I)
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@xxxxxxx>
>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/