aboutsummaryrefslogtreecommitdiff
path: root/init/dyn_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/dyn_array.c')
-rw-r--r--init/dyn_array.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/dyn_array.c b/init/dyn_array.c
index c4cd902a118..1dc08140f3c 100644
--- a/init/dyn_array.c
+++ b/init/dyn_array.c
@@ -91,6 +91,7 @@ unsigned long __init per_cpu_dyn_array_size(unsigned long *align)
return total_size;
}
+#ifdef CONFIG_SMP
void __init per_cpu_alloc_dyn_array(int cpu, char *ptr)
{
#ifdef CONFIG_HAVE_DYN_ARRAY
@@ -122,3 +123,4 @@ void __init per_cpu_alloc_dyn_array(int cpu, char *ptr)
}
#endif
}
+#endif