diff --git a/mm/allocpercpu.c b/mm/allocpercpu.c index 3653c570232bc5fd643a6c9cdccf4c05360525c7..1882923bc706071b79f823dd17b8f69d4fccf145 100644 --- a/mm/allocpercpu.c +++ b/mm/allocpercpu.c @@ -120,7 +120,7 @@ void *__alloc_percpu(size_t size, size_t align) * on it. Larger alignment should only be used for module * percpu sections on SMP for which this path isn't used. */ - WARN_ON_ONCE(align > __alignof__(unsigned long long)); + WARN_ON_ONCE(align > SMP_CACHE_BYTES); if (unlikely(!pdata)) return NULL;