* linux-next: build failure after merge of the final tree (tip tree related)
@ 2011-04-12 4:00 Stephen Rothwell
2011-04-12 6:20 ` Ingo Molnar
2011-04-12 7:40 ` [tip:sched/domains] sched, sparc64: Turn cpu_coregroup_mask() into a real function tip-bot for Stephen Rothwell
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Rothwell @ 2011-04-12 4:00 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra
Cc: linux-next, linux-kernel, David S. Miller
Hi all,
After merging the final tree, today's linux-next build (sparc64 defconfig)
failed like this:
kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
Caused by commit 2c402dc3bb50 ("sched: Unify the sched_domain build
functions"). On sparc64, cpu_coregroup_mask is a #define, not a function.
I applied tha patch below (idea stolen from s390) whcih could probably be
better.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 12 Apr 2011 13:51:32 +1000
Subject: [PATCH] sched: fix sparc64 for sched_domain changes
Fixes this compile error:
kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/sparc/include/asm/topology_64.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index 1c79f32..16f477d 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -65,6 +65,10 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
#define smt_capable() (sparc64_multi_core)
#endif /* CONFIG_SMP */
-#define cpu_coregroup_mask(cpu) (&cpu_core_map[cpu])
+extern cpumask_t cpu_core_map[NR_CPUS];
+static inline const struct cpumask *cpu_coregroup_mask(int cpu)
+{
+ return &cpu_core_map[cpu];
+}
#endif /* _ASM_SPARC64_TOPOLOGY_H */
--
1.7.4.1
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: linux-next: build failure after merge of the final tree (tip tree related)
2011-04-12 4:00 linux-next: build failure after merge of the final tree (tip tree related) Stephen Rothwell
@ 2011-04-12 6:20 ` Ingo Molnar
2011-04-12 6:25 ` David Miller
2011-04-12 7:40 ` [tip:sched/domains] sched, sparc64: Turn cpu_coregroup_mask() into a real function tip-bot for Stephen Rothwell
1 sibling, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2011-04-12 6:20 UTC (permalink / raw)
To: Stephen Rothwell, David S. Miller
Cc: Thomas Gleixner, H. Peter Anvin, Peter Zijlstra, linux-next,
linux-kernel
* Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi all,
>
> After merging the final tree, today's linux-next build (sparc64 defconfig)
> failed like this:
>
> kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
>
> Caused by commit 2c402dc3bb50 ("sched: Unify the sched_domain build
> functions"). On sparc64, cpu_coregroup_mask is a #define, not a function.
>
> I applied tha patch below (idea stolen from s390) whcih could probably be
> better.
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Tue, 12 Apr 2011 13:51:32 +1000
> Subject: [PATCH] sched: fix sparc64 for sched_domain changes
>
> Fixes this compile error:
>
> kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> arch/sparc/include/asm/topology_64.h | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
> index 1c79f32..16f477d 100644
> --- a/arch/sparc/include/asm/topology_64.h
> +++ b/arch/sparc/include/asm/topology_64.h
> @@ -65,6 +65,10 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
> #define smt_capable() (sparc64_multi_core)
> #endif /* CONFIG_SMP */
>
> -#define cpu_coregroup_mask(cpu) (&cpu_core_map[cpu])
> +extern cpumask_t cpu_core_map[NR_CPUS];
> +static inline const struct cpumask *cpu_coregroup_mask(int cpu)
> +{
> + return &cpu_core_map[cpu];
> +}
Dave, if this change is fine with you i'd like to queue it up in
tip:sched/domains.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: build failure after merge of the final tree (tip tree related)
2011-04-12 6:20 ` Ingo Molnar
@ 2011-04-12 6:25 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-04-12 6:25 UTC (permalink / raw)
To: mingo; +Cc: sfr, tglx, hpa, peterz, linux-next, linux-kernel
From: Ingo Molnar <mingo@elte.hu>
Date: Tue, 12 Apr 2011 08:20:02 +0200
>
> * Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
>> Hi all,
>>
>> After merging the final tree, today's linux-next build (sparc64 defconfig)
>> failed like this:
>>
>> kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
>>
>> Caused by commit 2c402dc3bb50 ("sched: Unify the sched_domain build
>> functions"). On sparc64, cpu_coregroup_mask is a #define, not a function.
>>
>> I applied tha patch below (idea stolen from s390) whcih could probably be
>> better.
>>
>> From: Stephen Rothwell <sfr@canb.auug.org.au>
>> Date: Tue, 12 Apr 2011 13:51:32 +1000
>> Subject: [PATCH] sched: fix sparc64 for sched_domain changes
>>
>> Fixes this compile error:
>>
>> kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
>>
>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> ---
>> arch/sparc/include/asm/topology_64.h | 6 +++++-
>> 1 files changed, 5 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
>> index 1c79f32..16f477d 100644
>> --- a/arch/sparc/include/asm/topology_64.h
>> +++ b/arch/sparc/include/asm/topology_64.h
>> @@ -65,6 +65,10 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
>> #define smt_capable() (sparc64_multi_core)
>> #endif /* CONFIG_SMP */
>>
>> -#define cpu_coregroup_mask(cpu) (&cpu_core_map[cpu])
>> +extern cpumask_t cpu_core_map[NR_CPUS];
>> +static inline const struct cpumask *cpu_coregroup_mask(int cpu)
>> +{
>> + return &cpu_core_map[cpu];
>> +}
>
> Dave, if this change is fine with you i'd like to queue it up in
> tip:sched/domains.
Yep, it's fine:
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip:sched/domains] sched, sparc64: Turn cpu_coregroup_mask() into a real function
2011-04-12 4:00 linux-next: build failure after merge of the final tree (tip tree related) Stephen Rothwell
2011-04-12 6:20 ` Ingo Molnar
@ 2011-04-12 7:40 ` tip-bot for Stephen Rothwell
1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Stephen Rothwell @ 2011-04-12 7:40 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, peterz, davem, tglx, sfr, mingo
Commit-ID: 3905c54f2bd2c6f937f87307987ca072eabc3e7b
Gitweb: http://git.kernel.org/tip/3905c54f2bd2c6f937f87307987ca072eabc3e7b
Author: Stephen Rothwell <sfr@canb.auug.org.au>
AuthorDate: Tue, 12 Apr 2011 14:00:40 +1000
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 12 Apr 2011 08:46:41 +0200
sched, sparc64: Turn cpu_coregroup_mask() into a real function
This compile error triggers on Sparc64:
kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
Because after the recent scheduler domain cleanups the scheduler
uses this arch method as a function pointer in a scheduler
topology data structure - which is not possible with a macro.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20110412140040.3020ef55.sfr@canb.auug.org.au
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/sparc/include/asm/topology_64.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index 1c79f32..8b9c556 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -65,6 +65,10 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
#define smt_capable() (sparc64_multi_core)
#endif /* CONFIG_SMP */
-#define cpu_coregroup_mask(cpu) (&cpu_core_map[cpu])
+extern cpumask_t cpu_core_map[NR_CPUS];
+static inline const struct cpumask *cpu_coregroup_mask(int cpu)
+{
+ return &cpu_core_map[cpu];
+}
#endif /* _ASM_SPARC64_TOPOLOGY_H */
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-12 7:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 4:00 linux-next: build failure after merge of the final tree (tip tree related) Stephen Rothwell
2011-04-12 6:20 ` Ingo Molnar
2011-04-12 6:25 ` David Miller
2011-04-12 7:40 ` [tip:sched/domains] sched, sparc64: Turn cpu_coregroup_mask() into a real function tip-bot for Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox