From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan Subject: Re: [PATCH v3] MIPS: Fix build breakage caused by header file changes Date: Tue, 7 Mar 2017 10:31:36 +0000 Message-ID: <20170307103136.GH2878@jhogan-linux.le.imgtec.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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="U3BNvdZEnlJXqmh+" Cc: Ralf Baechle , Herbert Xu , , , , Ingo Molnar To: Guenter Roeck Return-path: Content-Disposition: inline In-Reply-To: <20170307093339.GC996@jhogan-linux.le.imgtec.org> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: List-Id: linux-crypto.vger.kernel.org --U3BNvdZEnlJXqmh+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 to ") and commit > > >> f780d89a0e82 ("sched/headers: Remove from > > >> "), various mips builds fail as follows. > > >> > > >> arch/mips/kernel/smp-mt.c: In function =E2=80=98vsmp_boot_secondary= =E2=80=99: > > >> arch/mips/include/asm/processor.h:384:41: error: > > >> implicit declaration of function =E2=80=98task_stack_page=E2=80=99 > > >> > > >> 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 robu= st > > > than adding to the individual c files affected: > > > https://patchwork.linux-mips.org/patch/15386/ > > > > > Agreed. > >=20 > > > Admitedly it could probably have a more specific subject line since > > > there are more similar errors. > >=20 > > Does that fix all compile problems ? Seems to me that we'll still need > >=20 > > -#include > > +#include > >=20 > > or did you prepare a patch for this as well ? >=20 > 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 Build testing of that in progress... Thanks James --U3BNvdZEnlJXqmh+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYvowIAAoJEGwLaZPeOHZ6ku8P/jF6F7+FHFE37m/nQNmA3lPe sKWXy2WtyJJFiwYD4xwl0eXH1ymAH2s7pDd+3/kcS3z1Q4jLpRnwNPavSoLPaW9Z yRIpJPzH/qpcRVZU0IeqiLDUkNu60BJmGELpQhAIgsTNbph51wF5AdsQpxwd/4/0 FSYS6BJ7UUATv9ypqZcMA/c0kFcJAxa0rW8aPdYaCZ8VE5ALl4BOToD33AYkWgGE it+YwtJz6Ho1J7I8TY9FPuvbf86ct8Fr/19r3SRPxhDieQZiO49AdZbwkzORF4rO mOy030yM4HXrT5uflPtu25CKFZiT2hFvWXYXGQlk2ViSNy/4mn8D+e8HcBUOW+h8 D6Mx//zyRH66H+KF0sm8Q0xN/VtI3ce9wq3zycRP9UBJI/K6O0ZEOFPnvoPFqsmT wdr1+UwN83DQr3q+qEYKl9fAiXNuoVxc6jgwEME3iUYt4yUa7pCWxD5CWjKYKBCf Zd3IYlGA17Y6JyutZ93UXs/VPcPqXz3v3Fi5fCCMijVN/nMra6/lWHxoeCdwSxVM Y9/SbkRdJ1AdBSsSeIuHasRe7/1Gp58OxsCT7P+0DhxSZVB/+EjblhhCAcVmIyT0 jQQGFspQFYLaDml7xyWJBLJuqFPoVtCML8pFgqnHPnhVOG+9ibXTnY9a22gRSX53 kpZEkcGapwSlBMLSyHjp =ul4T -----END PGP SIGNATURE----- --U3BNvdZEnlJXqmh+--