Skip to content
Commit e8fc96ed authored by H. Peter Anvin's avatar H. Peter Anvin Committed by Ingo Molnar
Browse files

dyn_array: don't break compiling for !CONFIG_SMP



Impact: build failure on uniprocessor

When compiling for !CONFIG_SMP, per_cpu_alloc_dyn_array() would fail
to compile, since it uses per_cpu_offset, which is not defined for
uniprocessor builds.

Hence, do not compile per_cpu_alloc_dyn_array() for !CONFIG_SMP.
Attempting to call this function in a uniprocessor configuration would
be simply wrong in the first place.

Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 1c7d1bca
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