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:44:50 EST




On 06/11/18 16:39, Russell King - ARM Linux wrote:
On Tue, Nov 06, 2018 at 04:29:54PM +0000, Julien Thierry wrote:
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?

Both I guess.

Otherwise let me know when is it best for you to receive the fix then to
send to Linus.

As mentioned, I'll have to wait a while, it's not fair to send a pull
request for one patch followed immediately by another pull request for
another patch on top of the same pull request.


Makes sense. I'll send the fix in a short time.

Thanks,

--
Julien Thierry