diff options
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 3f930018aa60..c5feb79f5995 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -1216,8 +1216,10 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, | |||
1216 | PCPU_SETUP_BUG_ON(ai->nr_groups <= 0); | 1216 | PCPU_SETUP_BUG_ON(ai->nr_groups <= 0); |
1217 | #ifdef CONFIG_SMP | 1217 | #ifdef CONFIG_SMP |
1218 | PCPU_SETUP_BUG_ON(!ai->static_size); | 1218 | PCPU_SETUP_BUG_ON(!ai->static_size); |
1219 | PCPU_SETUP_BUG_ON((unsigned long)__per_cpu_start & ~PAGE_MASK); | ||
1219 | #endif | 1220 | #endif |
1220 | PCPU_SETUP_BUG_ON(!base_addr); | 1221 | PCPU_SETUP_BUG_ON(!base_addr); |
1222 | PCPU_SETUP_BUG_ON((unsigned long)base_addr & ~PAGE_MASK); | ||
1221 | PCPU_SETUP_BUG_ON(ai->unit_size < size_sum); | 1223 | PCPU_SETUP_BUG_ON(ai->unit_size < size_sum); |
1222 | PCPU_SETUP_BUG_ON(ai->unit_size & ~PAGE_MASK); | 1224 | PCPU_SETUP_BUG_ON(ai->unit_size & ~PAGE_MASK); |
1223 | PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE); | 1225 | PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE); |