mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
percpu: fix spurious alignment WARN in legacy SMP percpu allocator
Impact: remove spurious WARN on legacy SMP percpu allocator Commitf2a8205c4eincorrectly added too tight WARN_ON_ONCE() on alignments for UP and legacy SMP percpu allocator. Commite317603694fixed it for UP but legacy SMP allocator was forgotten. Fix it. Signed-off-by: Tejun Heo <[email protected]> Reported-by: Sachin P. Sant <[email protected]>
This commit is contained in:
parent
66c3a75772
commit
60db564220
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue