linux-mips
[Top] [All Lists]

Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes

To: Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes
From: James Hogan <james.hogan@imgtec.com>
Date: Tue, 7 Mar 2017 10:31:36 +0000
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>
In-reply-to: <20170307093339.GC996@jhogan-linux.le.imgtec.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1488827635-7708-1-git-send-email-linux@roeck-us.net> <20170306232019.GG2878@jhogan-linux.le.imgtec.org> <146eef7a-44dd-48ff-3f09-0b342d844bd6@roeck-us.net> <20170307093339.GC996@jhogan-linux.le.imgtec.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.24 (2015-08-30)
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: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>