From: maximilian attems <max@stro.at>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, tj@kernel.org,
ink@jurassic.park.msu.ru, rth@twiddle.net, stable@kernel.org
Subject: Re: + alpha-fix-percpu-build-breakage.patch added to -mm tree
Date: Tue, 30 Jun 2009 00:36:46 +0200 [thread overview]
Message-ID: <20090629223646.GI3564@stro.at> (raw)
In-Reply-To: <200906280107.n5S17MVD011837@imap1.linux-foundation.org>
On Sat, 27 Jun 2009, akpm@linux-foundation.org wrote:
>
> The patch titled
> alpha: fix percpu build breakage
> has been added to the -mm tree. Its filename is
> alpha-fix-percpu-build-breakage.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
> out what to do about this
>
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
>
> ------------------------------------------------------
> Subject: alpha: fix percpu build breakage
> From: Tejun Heo <tj@kernel.org>
>
> alpha percpu access requires custom SHIFT_PERCPU_PTR() definition for
> modules to work around addressing range limitation. This is done via
> generating inline assembly using C preprocessing which forces the
> assembler to generate external reference. This happens behind the
> compiler's back and makes the compiler think that static percpu variables
> in modules are unused.
>
> This used to be worked around by using __unused attribute for percpu
> variables which prevent the compiler from omitting the variable; however,
> recent declare/definition attribute unification change broke this as
> __used can't be used for declaration. Also, in the process,
> PER_CPU_ATTRIBUTES definition in alpha percpu.h got broken.
>
> This patch adds PER_CPU_DEF_ATTRIBUTES which is only used for definitions
> and make alpha use it to add __used for percpu variables in modules. This
> also fixes the PER_CPU_ATTRIBUTES double definition bug.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: maximilian attems <max@stro.at>
> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
> Cc: Richard Henderson <rth@twiddle.net>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> arch/alpha/include/asm/percpu.h | 6 +++---
> include/asm-generic/percpu.h | 4 ++++
> include/linux/percpu-defs.h | 3 ++-
> 3 files changed, 9 insertions(+), 4 deletions(-)
verified that all Debian alpha images build fine with aboves patch.
thanks.
parent reply other threads:[~2009-06-29 22:58 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <200906280107.n5S17MVD011837@imap1.linux-foundation.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090629223646.GI3564@stro.at \
--to=max@stro.at \
--cc=akpm@linux-foundation.org \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
--cc=stable@kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox