From: Stephen Rothwell Date: Mon, 6 Apr 2009 05:08:29 +0000 (+1000) Subject: percpu: __percpu_depopulate_mask can take a const mask X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5d6700ea7bfb4704a8d5d10c6ebf0e947410f9ce;p=linux-2.6-omap-h63xx.git percpu: __percpu_depopulate_mask can take a const mask This eliminates a compiler warning: mm/allocpercpu.c: In function 'free_percpu': mm/allocpercpu.c:146: warning: passing argument 2 of '__percpu_depopulate_mask' discards qualifiers from pointer target type Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds --- diff --git a/mm/allocpercpu.c b/mm/allocpercpu.c index 139d5b7b662..dfdee6a4735 100644 --- a/mm/allocpercpu.c +++ b/mm/allocpercpu.c @@ -31,7 +31,7 @@ static void percpu_depopulate(void *__pdata, int cpu) * @__pdata: per-cpu data to depopulate * @mask: depopulate per-cpu data for cpu's selected through mask bits */ -static void __percpu_depopulate_mask(void *__pdata, cpumask_t *mask) +static void __percpu_depopulate_mask(void *__pdata, const cpumask_t *mask) { int cpu; for_each_cpu_mask_nr(cpu, *mask)