* [PATCH 0/2] Fix v3.10-rc6 failures in ia64 and mn10300 @ 2013-06-16 20:06 ddaney.cavm 2013-06-16 20:06 ` [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h ddaney.cavm ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: ddaney.cavm @ 2013-06-16 20:06 UTC (permalink / raw) To: Linus Torvalds, linux-kernel, Geert Uytterhoeven, Tony Luck, Fenghua Yu, linux-ia64, David Howells, Koichi Yasutake, linux-am33-list Cc: david.s.daney, David Daney From: David Daney <david.daney@cavium.com> My patch f21afc25f (smp.h: Use local_irq_{save,restore}() in !SMP version of on_each_cpu().) seems to have broken ia64 and mn10300. We can fix the breakage by resolving the unmet include dependencies. David Daney (2): ia64: Fix include dependency in asm/irqflags.h mn10300: Fix include dependency in irqflags.h arch/ia64/include/asm/irqflags.h | 1 + arch/mn10300/include/asm/irqflags.h | 3 ++- arch/mn10300/include/asm/smp.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) -- 1.7.11.7 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h 2013-06-16 20:06 [PATCH 0/2] Fix v3.10-rc6 failures in ia64 and mn10300 ddaney.cavm @ 2013-06-16 20:06 ` ddaney.cavm 2013-06-17 7:28 ` Geert Uytterhoeven 2013-06-16 20:06 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h ddaney.cavm 2013-06-17 9:07 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h David Howells 2 siblings, 1 reply; 12+ messages in thread From: ddaney.cavm @ 2013-06-16 20:06 UTC (permalink / raw) To: Linus Torvalds, linux-kernel, Geert Uytterhoeven, Tony Luck, Fenghua Yu, linux-ia64, David Howells, Koichi Yasutake, linux-am33-list Cc: david.s.daney, David Daney, David Daney From: David Daney <ddaney@caviumnetworks.com> asm/kregs.h isn't always included first, so we need an explicit include. Signed-off-by: David Daney <david.daney@cavium.com> --- arch/ia64/include/asm/irqflags.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/include/asm/irqflags.h b/arch/ia64/include/asm/irqflags.h index 1bf2cf2..cec6c06 100644 --- a/arch/ia64/include/asm/irqflags.h +++ b/arch/ia64/include/asm/irqflags.h @@ -11,6 +11,7 @@ #define _ASM_IA64_IRQFLAGS_H #include <asm/pal.h> +#include <asm/kregs.h> #ifdef CONFIG_IA64_DEBUG_IRQ extern unsigned long last_cli_ip; -- 1.7.11.7 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h 2013-06-16 20:06 ` [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h ddaney.cavm @ 2013-06-17 7:28 ` Geert Uytterhoeven 0 siblings, 0 replies; 12+ messages in thread From: Geert Uytterhoeven @ 2013-06-17 7:28 UTC (permalink / raw) To: David Daney Cc: Linus Torvalds, linux-kernel@vger.kernel.org, Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org, David Howells, Koichi Yasutake, linux-am33-list, david.s.daney, David Daney, David Daney On Sun, Jun 16, 2013 at 10:06 PM, <ddaney.cavm@gmail.com> wrote: > asm/kregs.h isn't always included first, so we need an explicit include. Thanks, this fixes the build! > Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 2/2] mn10300: Fix include dependency in irqflags.h 2013-06-16 20:06 [PATCH 0/2] Fix v3.10-rc6 failures in ia64 and mn10300 ddaney.cavm 2013-06-16 20:06 ` [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h ddaney.cavm @ 2013-06-16 20:06 ` ddaney.cavm 2013-06-17 7:07 ` Geert Uytterhoeven ` (2 more replies) 2013-06-17 9:07 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h David Howells 2 siblings, 3 replies; 12+ messages in thread From: ddaney.cavm @ 2013-06-16 20:06 UTC (permalink / raw) To: Linus Torvalds, linux-kernel, Geert Uytterhoeven, Tony Luck, Fenghua Yu, linux-ia64, David Howells, Koichi Yasutake, linux-am33-list Cc: david.s.daney, David Daney From: David Daney <david.daney@cavium.com> We need to pick up the definition of raw_smp_processor_id() from asm/smp.h. For the !SMP case, we need to supply a definition of raw_smp_processor_id(). Signed-off-by: David Daney <david.daney@cavium.com> --- arch/mn10300/include/asm/irqflags.h | 3 ++- arch/mn10300/include/asm/smp.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mn10300/include/asm/irqflags.h b/arch/mn10300/include/asm/irqflags.h index 678f68d..06e0a17 100644 --- a/arch/mn10300/include/asm/irqflags.h +++ b/arch/mn10300/include/asm/irqflags.h @@ -14,7 +14,8 @@ #include <asm/cpu-regs.h> #ifndef __ASSEMBLY__ -#include <linux/smp.h> +/* linux/smp.h <- linux/irqflags.h needs asm/smp.h first */ +#include <asm/smp.h> #endif /* diff --git a/arch/mn10300/include/asm/smp.h b/arch/mn10300/include/asm/smp.h index 6745dbe..498e5ab 100644 --- a/arch/mn10300/include/asm/smp.h +++ b/arch/mn10300/include/asm/smp.h @@ -100,6 +100,7 @@ extern void __cpu_die(unsigned int cpu); #ifndef __ASSEMBLY__ static inline void smp_init_cpus(void) {} +#define raw_smp_processor_id() 0 #endif /* __ASSEMBLY__ */ #endif /* CONFIG_SMP */ -- 1.7.11.7 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] mn10300: Fix include dependency in irqflags.h 2013-06-16 20:06 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h ddaney.cavm @ 2013-06-17 7:07 ` Geert Uytterhoeven 2013-06-17 10:12 ` Geert Uytterhoeven 2013-06-17 15:46 ` [PATCH v2] mn10300: Fix include dependency in irqflags.h et al ddaney.cavm 2013-06-19 10:05 ` David Howells 2 siblings, 1 reply; 12+ messages in thread From: Geert Uytterhoeven @ 2013-06-17 7:07 UTC (permalink / raw) To: David Daney Cc: Linus Torvalds, linux-kernel@vger.kernel.org, Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org, David Howells, Koichi Yasutake, linux-am33-list, david.s.daney, David Daney On Sun, Jun 16, 2013 at 10:06 PM, <ddaney.cavm@gmail.com> wrote: > From: David Daney <david.daney@cavium.com> > > We need to pick up the definition of raw_smp_processor_id() from > asm/smp.h. For the !SMP case, we need to supply a definition of > raw_smp_processor_id(). Thanks, this fixes the build! > Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] mn10300: Fix include dependency in irqflags.h 2013-06-17 7:07 ` Geert Uytterhoeven @ 2013-06-17 10:12 ` Geert Uytterhoeven 2013-06-17 14:48 ` David Daney 0 siblings, 1 reply; 12+ messages in thread From: Geert Uytterhoeven @ 2013-06-17 10:12 UTC (permalink / raw) To: David Daney Cc: Linus Torvalds, linux-kernel@vger.kernel.org, Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org, David Howells, Koichi Yasutake, linux-am33-list, David Daney, David Daney On Mon, Jun 17, 2013 at 9:07 AM, Geert Uytterhoeven <geert@linux-m68k.org> wrote: > On Sun, Jun 16, 2013 at 10:06 PM, <ddaney.cavm@gmail.com> wrote: >> From: David Daney <david.daney@cavium.com> >> >> We need to pick up the definition of raw_smp_processor_id() from >> asm/smp.h. For the !SMP case, we need to supply a definition of >> raw_smp_processor_id(). > > Thanks, this fixes the build! > >> Signed-off-by: David Daney <david.daney@cavium.com> > > Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Sorry, I acked to soon. While SMP=n is fine (asb2303_defconfig), there's a new regression with asb2364_defconfig, which has SMP=y: CC arch/mn10300/kernel/asm-offsets.s In file included from /scratch/geert/linux/linux/arch/mn10300/include/asm/irqflags.h:18:0, from /scratch/geert/linux/linux/include/linux/irqflags.h:15, from /scratch/geert/linux/linux/include/linux/spinlock.h:53, from /scratch/geert/linux/linux/include/linux/seqlock.h:29, from /scratch/geert/linux/linux/include/linux/time.h:5, from /scratch/geert/linux/linux/include/uapi/linux/timex.h:56, from /scratch/geert/linux/linux/include/linux/timex.h:56, from /scratch/geert/linux/linux/include/linux/sched.h:17, from /scratch/geert/linux/linux/arch/mn10300/kernel/asm-offsets.c:7: /scratch/geert/linux/linux/arch/mn10300/include/asm/smp.h:88:34: error: unknown type name 'smp_call_func_t' make[4]: *** [arch/mn10300/kernel/asm-offsets.s] Error 1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] mn10300: Fix include dependency in irqflags.h 2013-06-17 10:12 ` Geert Uytterhoeven @ 2013-06-17 14:48 ` David Daney 0 siblings, 0 replies; 12+ messages in thread From: David Daney @ 2013-06-17 14:48 UTC (permalink / raw) To: Geert Uytterhoeven Cc: David Daney, Linus Torvalds, linux-kernel@vger.kernel.org, Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org, David Howells, Koichi Yasutake, linux-am33-list, David Daney On 06/17/2013 03:12 AM, Geert Uytterhoeven wrote: > On Mon, Jun 17, 2013 at 9:07 AM, Geert Uytterhoeven > <geert@linux-m68k.org> wrote: >> On Sun, Jun 16, 2013 at 10:06 PM, <ddaney.cavm@gmail.com> wrote: >>> From: David Daney <david.daney@cavium.com> >>> >>> We need to pick up the definition of raw_smp_processor_id() from >>> asm/smp.h. For the !SMP case, we need to supply a definition of >>> raw_smp_processor_id(). >> Thanks, this fixes the build! >> >>> Signed-off-by: David Daney <david.daney@cavium.com> >> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> > Sorry, I acked to soon. While SMP=n is fine (asb2303_defconfig), > there's a new regression with asb2364_defconfig, which has SMP=y: > > CC arch/mn10300/kernel/asm-offsets.s > In file included from > /scratch/geert/linux/linux/arch/mn10300/include/asm/irqflags.h:18:0, > from /scratch/geert/linux/linux/include/linux/irqflags.h:15, > from /scratch/geert/linux/linux/include/linux/spinlock.h:53, > from /scratch/geert/linux/linux/include/linux/seqlock.h:29, > from /scratch/geert/linux/linux/include/linux/time.h:5, > from /scratch/geert/linux/linux/include/uapi/linux/timex.h:56, > from /scratch/geert/linux/linux/include/linux/timex.h:56, > from /scratch/geert/linux/linux/include/linux/sched.h:17, > from > /scratch/geert/linux/linux/arch/mn10300/kernel/asm-offsets.c:7: > /scratch/geert/linux/linux/arch/mn10300/include/asm/smp.h:88:34: > error: unknown type name 'smp_call_func_t' > make[4]: *** [arch/mn10300/kernel/asm-offsets.s] Error 1 I am truly in Include Hell. I will attempt a better fix... David Daney > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2] mn10300: Fix include dependency in irqflags.h et al. 2013-06-16 20:06 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h ddaney.cavm 2013-06-17 7:07 ` Geert Uytterhoeven @ 2013-06-17 15:46 ` ddaney.cavm 2013-06-17 19:01 ` Geert Uytterhoeven 2013-06-19 10:05 ` David Howells 2 siblings, 1 reply; 12+ messages in thread From: ddaney.cavm @ 2013-06-17 15:46 UTC (permalink / raw) To: Linus Torvalds, linux-kernel, Geert Uytterhoeven, Tony Luck, Fenghua Yu, linux-ia64, David Howells, Koichi Yasutake, linux-am33-list Cc: david.s.daney, David Daney From: David Daney <david.daney@cavium.com> We need to pick up the definition of raw_smp_processor_id() from asm/smp.h. For the !SMP case, we need to supply a definition of raw_smp_processor_id(). Because of the include dependencies we cannot use smp_call_func_t in asm/smp.h, but we do need linux/thread_info.h Signed-off-by: David Daney <david.daney@cavium.com> --- Changes from v1: Remove redundant #ifndef __ASSEMBLY__, fix SMP case. arch/mn10300/include/asm/irqflags.h | 5 ++--- arch/mn10300/include/asm/smp.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/mn10300/include/asm/irqflags.h b/arch/mn10300/include/asm/irqflags.h index 678f68d..8730c0a 100644 --- a/arch/mn10300/include/asm/irqflags.h +++ b/arch/mn10300/include/asm/irqflags.h @@ -13,9 +13,8 @@ #define _ASM_IRQFLAGS_H #include <asm/cpu-regs.h> -#ifndef __ASSEMBLY__ -#include <linux/smp.h> -#endif +/* linux/smp.h <- linux/irqflags.h needs asm/smp.h first */ +#include <asm/smp.h> /* * interrupt control diff --git a/arch/mn10300/include/asm/smp.h b/arch/mn10300/include/asm/smp.h index 6745dbe..56c4241 100644 --- a/arch/mn10300/include/asm/smp.h +++ b/arch/mn10300/include/asm/smp.h @@ -24,6 +24,7 @@ #ifndef __ASSEMBLY__ #include <linux/threads.h> #include <linux/cpumask.h> +#include <linux/thread_info.h> #endif #ifdef CONFIG_SMP @@ -85,7 +86,7 @@ extern cpumask_t cpu_boot_map; extern void smp_init_cpus(void); extern void smp_cache_interrupt(void); extern void send_IPI_allbutself(int irq); -extern int smp_nmi_call_function(smp_call_func_t func, void *info, int wait); +extern int smp_nmi_call_function(void (*func)(void *), void *info, int wait); extern void arch_send_call_function_single_ipi(int cpu); extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); @@ -100,6 +101,7 @@ extern void __cpu_die(unsigned int cpu); #ifndef __ASSEMBLY__ static inline void smp_init_cpus(void) {} +#define raw_smp_processor_id() 0 #endif /* __ASSEMBLY__ */ #endif /* CONFIG_SMP */ -- 1.7.11.7 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2] mn10300: Fix include dependency in irqflags.h et al. 2013-06-17 15:46 ` [PATCH v2] mn10300: Fix include dependency in irqflags.h et al ddaney.cavm @ 2013-06-17 19:01 ` Geert Uytterhoeven 0 siblings, 0 replies; 12+ messages in thread From: Geert Uytterhoeven @ 2013-06-17 19:01 UTC (permalink / raw) To: David Daney Cc: Linus Torvalds, linux-kernel@vger.kernel.org, Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org, David Howells, Koichi Yasutake, linux-am33-list, David Daney, David Daney On Mon, Jun 17, 2013 at 5:46 PM, <ddaney.cavm@gmail.com> wrote: > We need to pick up the definition of raw_smp_processor_id() from > asm/smp.h. For the !SMP case, we need to supply a definition of > raw_smp_processor_id(). > > Because of the include dependencies we cannot use smp_call_func_t in > asm/smp.h, but we do need linux/thread_info.h > > Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> > Changes from v1: Remove redundant #ifndef __ASSEMBLY__, fix SMP case. Many thanks, now both mn10300 defconfigs build fine. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2] mn10300: Fix include dependency in irqflags.h et al. 2013-06-16 20:06 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h ddaney.cavm 2013-06-17 7:07 ` Geert Uytterhoeven 2013-06-17 15:46 ` [PATCH v2] mn10300: Fix include dependency in irqflags.h et al ddaney.cavm @ 2013-06-19 10:05 ` David Howells 2 siblings, 0 replies; 12+ messages in thread From: David Howells @ 2013-06-19 10:05 UTC (permalink / raw) To: ddaney.cavm Cc: dhowells, Linus Torvalds, linux-kernel, Geert Uytterhoeven, Tony Luck, Fenghua Yu, linux-ia64, Koichi Yasutake, linux-am33-list, david.s.daney, David Daney ddaney.cavm@gmail.com wrote: > From: David Daney <david.daney@cavium.com> > > We need to pick up the definition of raw_smp_processor_id() from > asm/smp.h. For the !SMP case, we need to supply a definition of > raw_smp_processor_id(). > > Because of the include dependencies we cannot use smp_call_func_t in > asm/smp.h, but we do need linux/thread_info.h > > Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: David Howells <dhowells@redhat.com> ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] mn10300: Fix include dependency in irqflags.h 2013-06-16 20:06 [PATCH 0/2] Fix v3.10-rc6 failures in ia64 and mn10300 ddaney.cavm 2013-06-16 20:06 ` [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h ddaney.cavm 2013-06-16 20:06 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h ddaney.cavm @ 2013-06-17 9:07 ` David Howells 2013-06-17 10:11 ` Geert Uytterhoeven 2 siblings, 1 reply; 12+ messages in thread From: David Howells @ 2013-06-17 9:07 UTC (permalink / raw) To: ddaney.cavm Cc: dhowells, Linus Torvalds, linux-kernel, Geert Uytterhoeven, Tony Luck, Fenghua Yu, linux-ia64, Koichi Yasutake, linux-am33-list, david.s.daney, David Daney ddaney.cavm@gmail.com wrote: > #ifndef __ASSEMBLY__ > -#include <linux/smp.h> > +/* linux/smp.h <- linux/irqflags.h needs asm/smp.h first */ > +#include <asm/smp.h> > #endif If you make this change, is the #ifndef __ASSEMBLY__ still necessary, I wonder... David ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] mn10300: Fix include dependency in irqflags.h 2013-06-17 9:07 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h David Howells @ 2013-06-17 10:11 ` Geert Uytterhoeven 0 siblings, 0 replies; 12+ messages in thread From: Geert Uytterhoeven @ 2013-06-17 10:11 UTC (permalink / raw) To: David Howells Cc: David Daney, Linus Torvalds, linux-kernel@vger.kernel.org, Tony Luck, Fenghua Yu, linux-ia64@vger.kernel.org, Koichi Yasutake, linux-am33-list, david.s.daney, David Daney On Mon, Jun 17, 2013 at 11:07 AM, David Howells <dhowells@redhat.com> wrote: > ddaney.cavm@gmail.com wrote: > >> #ifndef __ASSEMBLY__ >> -#include <linux/smp.h> >> +/* linux/smp.h <- linux/irqflags.h needs asm/smp.h first */ >> +#include <asm/smp.h> >> #endif > > If you make this change, is the #ifndef __ASSEMBLY__ still necessary, I > wonder... Seems to be fine, for asb2303_defconfig. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-06-19 10:05 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-16 20:06 [PATCH 0/2] Fix v3.10-rc6 failures in ia64 and mn10300 ddaney.cavm 2013-06-16 20:06 ` [PATCH 1/2] ia64: Fix include dependency in asm/irqflags.h ddaney.cavm 2013-06-17 7:28 ` Geert Uytterhoeven 2013-06-16 20:06 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h ddaney.cavm 2013-06-17 7:07 ` Geert Uytterhoeven 2013-06-17 10:12 ` Geert Uytterhoeven 2013-06-17 14:48 ` David Daney 2013-06-17 15:46 ` [PATCH v2] mn10300: Fix include dependency in irqflags.h et al ddaney.cavm 2013-06-17 19:01 ` Geert Uytterhoeven 2013-06-19 10:05 ` David Howells 2013-06-17 9:07 ` [PATCH 2/2] mn10300: Fix include dependency in irqflags.h David Howells 2013-06-17 10:11 ` Geert Uytterhoeven
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).