Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);