Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
* James Hoganwrote: > Hi Ingo, > > On Tue, Mar 07, 2017 at 08:38:05AM +0100, Ingo Molnar wrote: > > Just a quick question: is your MIPS build fix going to be merged and sent > > to > > Linus? I can apply it too, and send it to Linus later today, together with > > a few > > other sched.h header related build fixes. > > One for Ralf... Ralf, what's your preference? > > Assuming it's all properly tested - my limited MIPS defconfig builds worked > > fine - > > but MIPS has a lot of build variations. > > If you have a branch with other generic fixes I'm happy to push it to > our MIPS buildbot too to double check. So I have not applied your patch yet (can do it with ack from Ralf), but all the other fixes that are pending can be found in: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/urgent It's these commits: bb35e4515411 drivers/char/nwbutton: Fix build breakage caused by include file reshuffling 80aa1a54f054 h8300: Fix build breakage caused by header file changes 1fbdbcea8005 avr32: Fix build error caused by include file reshuffling Thanks, Ingo
Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
Hi Guenter, On Tue, Mar 07, 2017 at 09:33:40AM +, James Hogan wrote: > On Mon, Mar 06, 2017 at 07:30:05PM -0800, Guenter Roeck wrote: > > On 03/06/2017 03:20 PM, James Hogan wrote: > > > On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > > >> Since commit f3ac60671954 ("sched/headers: Move task-stack related > > >> APIs from to ") and commit > > >> f780d89a0e82 ("sched/headers: Remove from > > >> "), various mips builds fail as follows. > > >> > > >> arch/mips/kernel/smp-mt.c: In function ‘vsmp_boot_secondary’: > > >> arch/mips/include/asm/processor.h:384:41: error: > > >> implicit declaration of function ‘task_stack_page’ > > >> > > >> In file included from > > >> /opt/buildbot/slave/hwmon-testing/build/arch/mips/kernel/pm.c: > > >> arch/mips/include/asm/fpu.h: In function '__own_fpu': > > >> arch/mips/include/asm/processor.h:385:31: error: > > >> invalid application of 'sizeof' to incomplete type 'struct pt_regs' > > > > > > This one is in an inline function, so I think it'd affect multiple > > > includes of even if __own_fpu isn't used, so I think the > > > following patch which adds the include ptrace.h in fpu.h is more robust > > > than adding to the individual c files affected: > > > https://patchwork.linux-mips.org/patch/15386/ > > > > > Agreed. > > > > > Admitedly it could probably have a more specific subject line since > > > there are more similar errors. > > > > Does that fix all compile problems ? Seems to me that we'll still need > > > > -#include > > +#include > > > > or did you prepare a patch for this as well ? > > It fixed the config I was using at the time. I didn't do a full build > test of all configs at the time so didn't fix the above. More specifically your changes to the following files: arch/mips/kernel/pm.c arch/mips/power/cpu.c Don't appear to be necessary with my patch above, but the rest look good to me. With those changes removed: Reviewed-by: James HoganBuild testing of that in progress... Thanks James signature.asc Description: Digital signature
Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
On Mon, Mar 06, 2017 at 07:30:05PM -0800, Guenter Roeck wrote: > On 03/06/2017 03:20 PM, James Hogan wrote: > > On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > >> Since commit f3ac60671954 ("sched/headers: Move task-stack related > >> APIs from to ") and commit > >> f780d89a0e82 ("sched/headers: Remove from > >> "), various mips builds fail as follows. > >> > >> arch/mips/kernel/smp-mt.c: In function ‘vsmp_boot_secondary’: > >> arch/mips/include/asm/processor.h:384:41: error: > >>implicit declaration of function ‘task_stack_page’ > >> > >> In file included from > >>/opt/buildbot/slave/hwmon-testing/build/arch/mips/kernel/pm.c: > >> arch/mips/include/asm/fpu.h: In function '__own_fpu': > >> arch/mips/include/asm/processor.h:385:31: error: > >>invalid application of 'sizeof' to incomplete type 'struct pt_regs' > > > > This one is in an inline function, so I think it'd affect multiple > > includes of even if __own_fpu isn't used, so I think the > > following patch which adds the include ptrace.h in fpu.h is more robust > > than adding to the individual c files affected: > > https://patchwork.linux-mips.org/patch/15386/ > > > Agreed. > > > Admitedly it could probably have a more specific subject line since > > there are more similar errors. > > Does that fix all compile problems ? Seems to me that we'll still need > > -#include > +#include > > or did you prepare a patch for this as well ? It fixed the config I was using at the time. I didn't do a full build test of all configs at the time so didn't fix the above. Cheers James signature.asc Description: Digital signature
Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
Hi Ingo, On Tue, Mar 07, 2017 at 08:38:05AM +0100, Ingo Molnar wrote: > Just a quick question: is your MIPS build fix going to be merged and sent to > Linus? I can apply it too, and send it to Linus later today, together with a > few > other sched.h header related build fixes. One for Ralf... > Assuming it's all properly tested - my limited MIPS defconfig builds worked > fine - > but MIPS has a lot of build variations. If you have a branch with other generic fixes I'm happy to push it to our MIPS buildbot too to double check. Cheers James signature.asc Description: Digital signature
Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
* James Hoganwrote: > Hi Guenter, > > On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > > Since commit f3ac60671954 ("sched/headers: Move task-stack related > > APIs from to ") and commit > > f780d89a0e82 ("sched/headers: Remove from > > "), various mips builds fail as follows. > > > > arch/mips/kernel/smp-mt.c: In function ‘vsmp_boot_secondary’: > > arch/mips/include/asm/processor.h:384:41: error: > > implicit declaration of function ‘task_stack_page’ > > > > In file included from > > /opt/buildbot/slave/hwmon-testing/build/arch/mips/kernel/pm.c: > > arch/mips/include/asm/fpu.h: In function '__own_fpu': > > arch/mips/include/asm/processor.h:385:31: error: > > invalid application of 'sizeof' to incomplete type 'struct pt_regs' > > This one is in an inline function, so I think it'd affect multiple > includes of even if __own_fpu isn't used, so I think the > following patch which adds the include ptrace.h in fpu.h is more robust > than adding to the individual c files affected: > https://patchwork.linux-mips.org/patch/15386/ > > Admitedly it could probably have a more specific subject line since > there are more similar errors. Just a quick question: is your MIPS build fix going to be merged and sent to Linus? I can apply it too, and send it to Linus later today, together with a few other sched.h header related build fixes. Assuming it's all properly tested - my limited MIPS defconfig builds worked fine - but MIPS has a lot of build variations. Either way is fine to me. Thanks, Ingo
Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
On 03/06/2017 03:20 PM, James Hogan wrote: Hi Guenter, On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: Since commit f3ac60671954 ("sched/headers: Move task-stack related APIs from to ") and commit f780d89a0e82 ("sched/headers: Remove from "), various mips builds fail as follows. arch/mips/kernel/smp-mt.c: In function ‘vsmp_boot_secondary’: arch/mips/include/asm/processor.h:384:41: error: implicit declaration of function ‘task_stack_page’ In file included from /opt/buildbot/slave/hwmon-testing/build/arch/mips/kernel/pm.c: arch/mips/include/asm/fpu.h: In function '__own_fpu': arch/mips/include/asm/processor.h:385:31: error: invalid application of 'sizeof' to incomplete type 'struct pt_regs' This one is in an inline function, so I think it'd affect multiple includes of even if __own_fpu isn't used, so I think the following patch which adds the include ptrace.h in fpu.h is more robust than adding to the individual c files affected: https://patchwork.linux-mips.org/patch/15386/ Agreed. Admitedly it could probably have a more specific subject line since there are more similar errors. Does that fix all compile problems ? Seems to me that we'll still need -#include +#include or did you prepare a patch for this as well ? Thanks, Guenter Cheers James arch/mips/netlogic/common/smp.c: In function 'nlm_boot_secondary': arch/mips/netlogic/common/smp.c:157:2: error: implicit declaration of function 'task_stack_page' and more similar errors. Fixes: f3ac60671954 ("sched/headers: Move task-stack related APIs ...") Fixes: f780d89a0e82 ("sched/headers: Remove from ...") Cc: Ingo MolnarSigned-off-by: Guenter Roeck --- v3: Catch more build errors arch/mips/cavium-octeon/cpu.c | 3 ++- arch/mips/cavium-octeon/crypto/octeon-crypto.c | 1 + arch/mips/cavium-octeon/smp.c | 2 +- arch/mips/kernel/pm.c | 1 + arch/mips/kernel/smp-mt.c | 2 +- arch/mips/netlogic/common/smp.c| 1 + arch/mips/netlogic/xlp/cop2-ex.c | 3 ++- arch/mips/power/cpu.c | 1 + 8 files changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/mips/cavium-octeon/cpu.c b/arch/mips/cavium-octeon/cpu.c index a5b427909b5c..b826b7a87c57 100644 --- a/arch/mips/cavium-octeon/cpu.c +++ b/arch/mips/cavium-octeon/cpu.c @@ -10,7 +10,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/arch/mips/cavium-octeon/crypto/octeon-crypto.c b/arch/mips/cavium-octeon/crypto/octeon-crypto.c index 4d22365844af..cfb4a146cf17 100644 --- a/arch/mips/cavium-octeon/crypto/octeon-crypto.c +++ b/arch/mips/cavium-octeon/crypto/octeon-crypto.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "octeon-crypto.h" diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c index 4b94b7fbafa3..d475c0146347 100644 --- a/arch/mips/cavium-octeon/smp.c +++ b/arch/mips/cavium-octeon/smp.c @@ -10,8 +10,8 @@ #include #include #include -#include #include +#include #include #include diff --git a/arch/mips/kernel/pm.c b/arch/mips/kernel/pm.c index dc814892133c..fab05022ab39 100644 --- a/arch/mips/kernel/pm.c +++ b/arch/mips/kernel/pm.c @@ -11,6 +11,7 @@ #include #include +#include #include #include diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c index e077ea3e11fb..effc1ed18954 100644 --- a/arch/mips/kernel/smp-mt.c +++ b/arch/mips/kernel/smp-mt.c @@ -18,7 +18,7 @@ * Copyright (C) 2006 Ralf Baechle (r...@linux-mips.org) */ #include -#include +#include #include #include #include diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c index 10d86d54880a..9035558920c1 100644 --- a/arch/mips/netlogic/common/smp.c +++ b/arch/mips/netlogic/common/smp.c @@ -37,6 +37,7 @@ #include #include #include +#include #include diff --git a/arch/mips/netlogic/xlp/cop2-ex.c b/arch/mips/netlogic/xlp/cop2-ex.c index 52bc5de42005..d990b7fc84aa 100644 --- a/arch/mips/netlogic/xlp/cop2-ex.c +++ b/arch/mips/netlogic/xlp/cop2-ex.c @@ -13,7 +13,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/arch/mips/power/cpu.c b/arch/mips/power/cpu.c index 2129e67723ff..6e26bf7f 100644 --- a/arch/mips/power/cpu.c +++ b/arch/mips/power/cpu.c @@ -7,6 +7,7 @@ * Author: Hu Hongbing *Wu Zhangjin */ +#include #include #include #include -- 2.7.4
Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
Hi Guenter, On Mon, Mar 06, 2017 at 11:13:55AM -0800, Guenter Roeck wrote: > Since commit f3ac60671954 ("sched/headers: Move task-stack related > APIs from to ") and commit > f780d89a0e82 ("sched/headers: Remove from > "), various mips builds fail as follows. > > arch/mips/kernel/smp-mt.c: In function ‘vsmp_boot_secondary’: > arch/mips/include/asm/processor.h:384:41: error: > implicit declaration of function ‘task_stack_page’ > > In file included from > /opt/buildbot/slave/hwmon-testing/build/arch/mips/kernel/pm.c: > arch/mips/include/asm/fpu.h: In function '__own_fpu': > arch/mips/include/asm/processor.h:385:31: error: > invalid application of 'sizeof' to incomplete type 'struct pt_regs' This one is in an inline function, so I think it'd affect multiple includes of even if __own_fpu isn't used, so I think the following patch which adds the include ptrace.h in fpu.h is more robust than adding to the individual c files affected: https://patchwork.linux-mips.org/patch/15386/ Admitedly it could probably have a more specific subject line since there are more similar errors. Cheers James > > arch/mips/netlogic/common/smp.c: In function 'nlm_boot_secondary': > arch/mips/netlogic/common/smp.c:157:2: error: > implicit declaration of function 'task_stack_page' > > and more similar errors. > > Fixes: f3ac60671954 ("sched/headers: Move task-stack related APIs ...") > Fixes: f780d89a0e82 ("sched/headers: Remove from ...") > Cc: Ingo Molnar> Signed-off-by: Guenter Roeck > --- > v3: Catch more build errors > > arch/mips/cavium-octeon/cpu.c | 3 ++- > arch/mips/cavium-octeon/crypto/octeon-crypto.c | 1 + > arch/mips/cavium-octeon/smp.c | 2 +- > arch/mips/kernel/pm.c | 1 + > arch/mips/kernel/smp-mt.c | 2 +- > arch/mips/netlogic/common/smp.c| 1 + > arch/mips/netlogic/xlp/cop2-ex.c | 3 ++- > arch/mips/power/cpu.c | 1 + > 8 files changed, 10 insertions(+), 4 deletions(-) > > diff --git a/arch/mips/cavium-octeon/cpu.c b/arch/mips/cavium-octeon/cpu.c > index a5b427909b5c..b826b7a87c57 100644 > --- a/arch/mips/cavium-octeon/cpu.c > +++ b/arch/mips/cavium-octeon/cpu.c > @@ -10,7 +10,8 @@ > #include > #include > #include > -#include > +#include > +#include > > #include > #include > diff --git a/arch/mips/cavium-octeon/crypto/octeon-crypto.c > b/arch/mips/cavium-octeon/crypto/octeon-crypto.c > index 4d22365844af..cfb4a146cf17 100644 > --- a/arch/mips/cavium-octeon/crypto/octeon-crypto.c > +++ b/arch/mips/cavium-octeon/crypto/octeon-crypto.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > #include "octeon-crypto.h" > > diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c > index 4b94b7fbafa3..d475c0146347 100644 > --- a/arch/mips/cavium-octeon/smp.c > +++ b/arch/mips/cavium-octeon/smp.c > @@ -10,8 +10,8 @@ > #include > #include > #include > -#include > #include > +#include > #include > #include > > diff --git a/arch/mips/kernel/pm.c b/arch/mips/kernel/pm.c > index dc814892133c..fab05022ab39 100644 > --- a/arch/mips/kernel/pm.c > +++ b/arch/mips/kernel/pm.c > @@ -11,6 +11,7 @@ > > #include > #include > +#include > > #include > #include > diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c > index e077ea3e11fb..effc1ed18954 100644 > --- a/arch/mips/kernel/smp-mt.c > +++ b/arch/mips/kernel/smp-mt.c > @@ -18,7 +18,7 @@ > * Copyright (C) 2006 Ralf Baechle (r...@linux-mips.org) > */ > #include > -#include > +#include > #include > #include > #include > diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c > index 10d86d54880a..9035558920c1 100644 > --- a/arch/mips/netlogic/common/smp.c > +++ b/arch/mips/netlogic/common/smp.c > @@ -37,6 +37,7 @@ > #include > #include > #include > +#include > > #include > > diff --git a/arch/mips/netlogic/xlp/cop2-ex.c > b/arch/mips/netlogic/xlp/cop2-ex.c > index 52bc5de42005..d990b7fc84aa 100644 > --- a/arch/mips/netlogic/xlp/cop2-ex.c > +++ b/arch/mips/netlogic/xlp/cop2-ex.c > @@ -13,7 +13,8 @@ > #include > #include > #include > -#include > +#include > +#include > > #include > #include > diff --git a/arch/mips/power/cpu.c b/arch/mips/power/cpu.c > index 2129e67723ff..6e26bf7f 100644 > --- a/arch/mips/power/cpu.c > +++ b/arch/mips/power/cpu.c > @@ -7,6 +7,7 @@ > * Author: Hu Hongbing > * Wu Zhangjin > */ > +#include > #include > #include > #include > -- > 2.7.4 > > signature.asc Description: Digital signature