linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: zero based percpu build error on s390
@ 2008-07-03 19:30 Heiko Carstens
  2008-07-07 17:58 ` Mike Travis
  2008-07-09 15:44 ` Ingo Molnar
  0 siblings, 2 replies; 3+ messages in thread
From: Heiko Carstens @ 2008-07-03 19:30 UTC (permalink / raw)
  To: Mike Travis, Ingo Molnar; +Cc: linux-next

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 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: zero based percpu build error on s390
  2008-07-03 19:30 linux-next: zero based percpu build error on s390 Heiko Carstens
@ 2008-07-07 17:58 ` Mike Travis
  2008-07-09 15:44 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Travis @ 2008-07-07 17:58 UTC (permalink / raw)
  To: Heiko Carstens; +Cc: Ingo Molnar, linux-next

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: zero based percpu build error on s390
  2008-07-03 19:30 linux-next: zero based percpu build error on s390 Heiko Carstens
  2008-07-07 17:58 ` Mike Travis
@ 2008-07-09 15:44 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2008-07-09 15:44 UTC (permalink / raw)
  To: Heiko Carstens; +Cc: Mike Travis, linux-next


* Heiko Carstens <heiko.carstens@de.ibm.com> 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:

> Fix below. Please merge with original patch.

applied to tip/core/percpu - thanks Heiko!

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-09 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-03 19:30 linux-next: zero based percpu build error on s390 Heiko Carstens
2008-07-07 17:58 ` Mike Travis
2008-07-09 15:44 ` Ingo Molnar

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