From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755039AbdCGJZN (ORCPT ); Tue, 7 Mar 2017 04:25:13 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33350 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753449AbdCGJXa (ORCPT ); Tue, 7 Mar 2017 04:23:30 -0500 Date: Tue, 7 Mar 2017 08:38:05 +0100 From: Ingo Molnar To: James Hogan Cc: Guenter Roeck , Ralf Baechle , Herbert Xu , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Linus Torvalds Subject: Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes Message-ID: <20170307073805.GB15693@gmail.com> References: <1488827635-7708-1-git-send-email-linux@roeck-us.net> <20170306232019.GG2878@jhogan-linux.le.imgtec.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170306232019.GG2878@jhogan-linux.le.imgtec.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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/ > > 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