[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0c600eb1a48f7ad1b903a9497b1104b172607dc3.camel@gmail.com>
Date: Thu, 01 Nov 2018 00:31:44 -0300
From: Leonardo Bras <leobras.c@...il.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: lkcamp@...ts.libreplanetbr.org, Borislav Petkov <bp@...en8.de>,
David.Laight@...lab.com, Andy Lutomirski <luto@...nel.org>,
Ingo Molnar <mingo@...nel.org>, helen@...keco.de,
Michal Marek <michal.lkml@...kovi.net>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 4/5] modpost: Changes parameter name to avoid
shadowing.
Em qua, 2018-10-31 às 20:24 -0300, Leonardo Bras escreveu:
> Em seg, 2018-10-29 às 01:42 +0900, Masahiro Yamada escreveu:
> > On Wed, Oct 24, 2018 at 1:05 PM Leonardo Bras <leobras.c@...il.com>
> > wrote:
> > > Changes the parameter name to avoid shadowing a variable.
> > >
> > > Signed-off-by: Leonardo Bras <leobras.c@...il.com>
> >
> > For this one, I'd rather like to see code refactoring
> > than renaming the variable.
> >
> > I will take a closer look.
>
> What do you suggest to refactor?
> I volunteer for this work.
>
> Leonardo Bras
>
I refactored the code to move the global variable *modules to a local
context at function main, and changed the functions to accept *modules
as a parameter.
Is that what you had in mind?
https://lkml.org/lkml/2018/11/1/725
Thanks for reading,
Leonardo Bras
Powered by blists - more mailing lists