From: James Hogan <james.hogan@imgtec.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Ralf Baechle <ralf@linux-mips.org>,
Herbert Xu <herbert@gondor.apana.org.au>,
<linux-mips@linux-mips.org>, <linux-kernel@vger.kernel.org>,
<linux-crypto@vger.kernel.org>, Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
Date: Tue, 7 Mar 2017 10:31:36 +0000 [thread overview]
Message-ID: <20170307103136.GH2878@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <20170307093339.GC996@jhogan-linux.le.imgtec.org>
[-- Attachment #1: Type: text/plain, Size: 2215 bytes --]
Hi Guenter,
On Tue, Mar 07, 2017 at 09:33:40AM +0000, 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 <linux/sched.h> to <linux/sched/task_stack.h>") and commit
> > >> f780d89a0e82 ("sched/headers: Remove <asm/ptrace.h> from
> > >> <linux/sched.h>"), 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 <asm/fpu.h> 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 <linux/sched.h>
> > +#include <linux/sched/task_stack.h>
> >
> > 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 Hogan <james.hogan@imgtec.com>
Build testing of that in progress...
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: James Hogan <james.hogan@imgtec.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Ralf Baechle <ralf@linux-mips.org>,
Herbert Xu <herbert@gondor.apana.org.au>,
linux-mips@linux-mips.org, linux-kernel@vger.kernel.org,
linux-crypto@vger.kernel.org, Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
Date: Tue, 7 Mar 2017 10:31:36 +0000 [thread overview]
Message-ID: <20170307103136.GH2878@jhogan-linux.le.imgtec.org> (raw)
Message-ID: <20170307103136.brj1y-4Ce9I7UGP-UxzxGljolQzWGEn6H20bVwjFDU4@z> (raw)
In-Reply-To: <20170307093339.GC996@jhogan-linux.le.imgtec.org>
[-- Attachment #1: Type: text/plain, Size: 2215 bytes --]
Hi Guenter,
On Tue, Mar 07, 2017 at 09:33:40AM +0000, 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 <linux/sched.h> to <linux/sched/task_stack.h>") and commit
> > >> f780d89a0e82 ("sched/headers: Remove <asm/ptrace.h> from
> > >> <linux/sched.h>"), 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 <asm/fpu.h> 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 <linux/sched.h>
> > +#include <linux/sched/task_stack.h>
> >
> > 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 Hogan <james.hogan@imgtec.com>
Build testing of that in progress...
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-03-07 10:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-06 19:13 [PATCH v3] MIPS: Fix build breakage caused by header file changes Guenter Roeck
2017-03-06 23:20 ` James Hogan
2017-03-06 23:20 ` James Hogan
2017-03-07 3:30 ` Guenter Roeck
2017-03-07 9:33 ` James Hogan
2017-03-07 9:33 ` James Hogan
2017-03-07 10:31 ` James Hogan [this message]
2017-03-07 10:31 ` James Hogan
2017-03-07 7:38 ` Ingo Molnar
2017-03-07 9:38 ` James Hogan
2017-03-07 9:38 ` James Hogan
2017-03-07 10:34 ` 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=20170307103136.GH2878@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux@roeck-us.net \
--cc=mingo@kernel.org \
--cc=ralf@linux-mips.org \
/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