Skip to content

Commit

Permalink
percpu: add __percpu notations to UP allocator
Browse files Browse the repository at this point in the history
Add __percpu notations to UP percpu allocator.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Namhyung Kim authored and Tejun Heo committed Aug 7, 2010
1 parent 18cb2ae commit 94cb121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/percpu_up.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ void __percpu *__alloc_percpu(size_t size, size_t align)
* percpu sections on SMP for which this path isn't used.
*/
WARN_ON_ONCE(align > SMP_CACHE_BYTES);
return kzalloc(size, GFP_KERNEL);
return (void __percpu __force *)kzalloc(size, GFP_KERNEL);
}
EXPORT_SYMBOL_GPL(__alloc_percpu);

void free_percpu(void __percpu *p)
{
kfree(p);
kfree(this_cpu_ptr(p));
}
EXPORT_SYMBOL_GPL(free_percpu);

Expand Down

0 comments on commit 94cb121

Please sign in to comment.