diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-04-06 01:08:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-06 16:44:15 -0400 |
commit | 5d6700ea7bfb4704a8d5d10c6ebf0e947410f9ce (patch) | |
tree | 5328df485bd4dc08af6e78d862ba2f79bb9501a6 /mm | |
parent | 0cb55ad2ad5513f55304d026bb4319a9311163d0 (diff) |
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 <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/allocpercpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/allocpercpu.c b/mm/allocpercpu.c index 139d5b7b6621..dfdee6a47359 100644 --- a/mm/allocpercpu.c +++ b/mm/allocpercpu.c | |||
@@ -31,7 +31,7 @@ static void percpu_depopulate(void *__pdata, int cpu) | |||
31 | * @__pdata: per-cpu data to depopulate | 31 | * @__pdata: per-cpu data to depopulate |
32 | * @mask: depopulate per-cpu data for cpu's selected through mask bits | 32 | * @mask: depopulate per-cpu data for cpu's selected through mask bits |
33 | */ | 33 | */ |
34 | static void __percpu_depopulate_mask(void *__pdata, cpumask_t *mask) | 34 | static void __percpu_depopulate_mask(void *__pdata, const cpumask_t *mask) |
35 | { | 35 | { |
36 | int cpu; | 36 | int cpu; |
37 | for_each_cpu_mask_nr(cpu, *mask) | 37 | for_each_cpu_mask_nr(cpu, *mask) |