Skip to content
Commit 64ef291f authored by Tejun Heo's avatar Tejun Heo
Browse files

percpu: make alloc_percpu() handle array types



alloc_percpu() couldn't handle array types like "int [100]" due to the
way return type was casted.  Fix it by using typeof() instead.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reviewed-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Reviewed-by: default avatarChristoph Lameter <cl@linux-foundation.org>
parent 3f04ba85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment