Re: linux-4.20-rc1/arch/arm/vfp/vfpmodule.c:576: possible cut'n'paste error

From: Julien Thierry
Date: Tue Nov 06 2018 - 11:29:59 EST


Hi Russel, David,

On 06/11/18 16:20, Russell King - ARM Linux wrote:
On Mon, Nov 05, 2018 at 01:53:13PM +0000, David Binderman wrote:
Hello there,

2nd try. Plain text might help.

Yep, Linux kernel development generally doesn't like wasteful html
emails, sorry.

linux-4.20-rc1/arch/arm/vfp/vfpmodule.c:576]: (warning) Redundant assignment of 'ufp_exc->fpinst2' to itself.

Source code is

   Âufp_exc->fpexc = hwstate->fpexc;
ÂÂ Â Â ufp_exc->fpinst = hwstate->fpinst;
ÂÂ Â Â ufp_exc->fpinst2 = ufp_exc->fpinst2;

Thanks for the report - it most certainly is a bug introduced by
Julien's patches, but I don't get your warning here. Which compiler
produces that warning?


Hmmm, silly typo/copy-paste from my end. Last line should be:

ufp_exc->fpinst2 = hwstate->fpinst2;

Sorry about that.

Julien - unfortunately, I've just asked Linus to take another fix
for Spectre, so we're going to have to wait a bit before I can
submit something for this.


It is just a one line fix, should I submit a patch to the LAKML or patch system?
Otherwise let me know when is it best for you to receive the fix then to send to Linus.

Thanks,

--
Julien Thierry