Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60db5642 authored by Tejun Heo's avatar Tejun Heo
Browse files

percpu: fix spurious alignment WARN in legacy SMP percpu allocator



Impact: remove spurious WARN on legacy SMP percpu allocator

Commit f2a8205c incorrectly added too
tight WARN_ON_ONCE() on alignments for UP and legacy SMP percpu
allocator.  Commit e3176036 fixed it
for UP but legacy SMP allocator was forgotten.  Fix it.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarSachin P. Sant <sachinp@in.ibm.com>
parent 66c3a757
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;