Message ID | 4B85B65E.503@kernel.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/mm/percpu.c b/mm/percpu.c index 841defe..6aa6d8d 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1923,8 +1923,10 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size, for (i = 0; i < gi->nr_units; i++, ptr += ai->unit_size) { if (gi->cpu_map[i] == NR_CPUS) { +#ifndef CONFIG_NO_BOOTMEM /* unused unit, free whole */ free_fn(ptr, ai->unit_size); +#endif continue; } /* copy and return the unused part */