From: Mike Travis <travis@sgi.com>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>, linux-next@vger.kernel.org
Subject: Re: linux-next: zero based percpu build error on s390
Date: Mon, 07 Jul 2008 10:58:14 -0700 [thread overview]
Message-ID: <48725936.2050503@sgi.com> (raw)
In-Reply-To: <20080703193009.GA8958@osiris.boeblingen.de.ibm.com>
Heiko Carstens wrote:
> The patch:
> "Zero based percpu: infrastructure to rebase the per cpu area to zero"
>
> causes this build error on !CONFIG_SMP on linux-next / s390:
>
> CC arch/s390/kernel/asm-offsets.s
> In file included from include/asm/percpu.h:35,
> from include/linux/percpu.h:9,
> from include/linux/rcupdate.h:39,
> from include/linux/pid.h:4,
> from include/linux/sched.h:74,
> from arch/s390/kernel/asm-offsets.c:7:
> include/asm-generic/percpu.h:78:1: warning: "SHIFT_PERCPU_PTR" redefined
> In file included from include/linux/percpu.h:9,
> from include/linux/rcupdate.h:39,
> from include/linux/pid.h:4,
> from include/linux/sched.h:74,
> from arch/s390/kernel/asm-offsets.c:7:
> include/asm/percpu.h:25:1: warning: this is the location of the previous definition
>
> Fix below. Please merge with original patch.
>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> ---
> include/asm-generic/percpu.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> Index: linux-next/include/asm-generic/percpu.h
> ===================================================================
> --- linux-next.orig/include/asm-generic/percpu.h
> +++ linux-next/include/asm-generic/percpu.h
> @@ -75,7 +75,9 @@ extern void setup_per_cpu_areas(void);
> #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu_var(var)))
> #define __get_cpu_var(var) per_cpu_var(var)
> #define __raw_get_cpu_var(var) per_cpu_var(var)
> -#define SHIFT_PERCPU_PTR(__p, __offset) (__p)
> +#ifndef SHIFT_PERCPU_PTR
> +# define SHIFT_PERCPU_PTR(__p, __offset) (__p)
> +#endif
> #define per_cpu_offset(x) 0L
>
> #endif /* SMP */
Looks good to me, thanks! (Not sure why I missed this the first time.)
Acked-by: Mike Travis <travis@sgi.com>
next prev parent reply other threads:[~2008-07-07 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 19:30 linux-next: zero based percpu build error on s390 Heiko Carstens
2008-07-07 17:58 ` Mike Travis [this message]
2008-07-09 15:44 ` Ingo Molnar
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=48725936.2050503@sgi.com \
--to=travis@sgi.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-next@vger.kernel.org \
--cc=mingo@elte.hu \
/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;
as well as URLs for NNTP newsgroup(s).