Re: [RESEND PATCH] tools/bootconfig: Fix a compilation issue with missing variable

From: Masami Hiramatsu
Date: Tue Sep 07 2021 - 20:41:53 EST


On Tue, 7 Sep 2021 20:24:00 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Wed, 8 Sep 2021 08:07:10 +0900
> Punit Agrawal <punitagrawal@xxxxxxxxx> wrote:
>
> > While looking to build bootconfig tool in order to debug a kernel boot
> > time issue I noticed that tool fails to compile. The broken changes
> > were introduced by commit e5efaeb8a8f5 ("bootconfig: Support mixing a
> > value and subkeys under a key").
> >
> > Fix the compile issue by introducing a "ret" variable to track the
> > return value from xbc_node_compose_key().
> >
> > Fixes: e5efaeb8a8f5 ("bootconfig: Support mixing a value and subkeys under a key")
> > Signed-off-by: Punit Agrawal <punitagrawal@xxxxxxxxx>
> > Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> > Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
> > ---
> >
> > (Apologies for the resend. I fat-fingered the email address for lkml)
>
> And I'm resending my reply to have it recorded as well.
>
> >
> > Hi Masami,
> >
> > I am not sure what went wrong but the patch in the lore link[0]
> > doesn't match the end result (bad merge?). You may want to recheck the
> > other changes to make sure it all looks sane.
>
>
> Thanks for reporting this. This is strange. Especially since it's all
> scripts that are used to import these.
>
> I do remember doing a rebase to fix some issues in another unrelated
> patch. I wonder if I accidentally messed this up during that rebase :-/
>
> I'll have to investigate this.
>
> I'll checkout the tree before the affected patch, and reapply the
> changes from my scripts to see if it wasn't my script that broke.
>
> Again, thanks for reporting this!

Hi Steve,

I've investigated that why this happens here.

https://lore.kernel.org/all/20210831033256.5973-1-jcfaracco@xxxxxxxxx/T/#m52f43f6deb874ee726b10ce25ba53e44697a275a

This seems a timing issue. I acked a "simplify" patch April, and
the I wrongly worked on the linus tree for "mixing a value and subkeys"
and send it to you June. At last, those 2 conflicted on your branch and
your merge script might just merge it.
Actually, what Punit and Julio did is reverting

commit 30d103f2d460 ("tools/bootconfig: Simplify expression")

Thank you,

--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>