[GIT PULL] percpu changes for v5.12-rc1
From: Dennis Zhou
Date: Mon Feb 22 2021 - 22:28:31 EST
Hi Linus,
Percpu had a cleanup come in that makes use of the cpu bitmask helpers
instead of the current iterative approach. This clean up has an adverse
interaction when clang's inlining sensitivity is changed such that
not all sites are inlined resulting in modpost being upset with section
mismatch due to percpu setup being marked __init. It is fixed by
introducing __flatten to compiler_attributes.h. This has been supported
since clang 3.5 and gcc 4.4 [1].
[1] https://lore.kernel.org/lkml/CAKwvOdnxnooqtyeSem63V_P5980jc0Z2PDG=0iM8ixeYTSaTCg@xxxxxxxxxxxxxx/
Thanks,
Dennis
The following changes since commit 92bf22614b21a2706f4993b278017e437f7785b3:
Linux 5.11-rc7 (2021-02-07 13:57:38 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-5.12
for you to fetch changes up to 258e0815e2b1706e87c0d874211097aa8a7aa52f:
percpu: fix clang modpost section mismatch (2021-02-14 18:15:15 +0000)
----------------------------------------------------------------
Dennis Zhou (1):
percpu: fix clang modpost section mismatch
Wonhyuk Yang (1):
percpu: reduce the number of cpu distance comparisons
include/linux/compiler_attributes.h | 6 ++++++
mm/percpu.c | 36 +++++++++++++++++++++---------------
2 files changed, 27 insertions(+), 15 deletions(-)