Commit 94cb121c authored by Namhyung Kim's avatar Namhyung Kim Committed by Tejun Heo

percpu: add __percpu notations to UP allocator

Add __percpu notations to UP percpu allocator.
Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 18cb2aef
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment