lkml.org 
[lkml]   [2021]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[GIT PULL] percpu changes for v5.12-rc1
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@mail.gmail.com/

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(-)

\
 
 \ /
  Last update: 2021-02-23 04:29    [W:0.028 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site