[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAQzgdFPpwHEtfDazLd2jAhNy8=f_4mvOQMWfOWCb07E1Q@mail.gmail.com>
Date: Mon, 29 Oct 2018 01:42:57 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Leonardo BrĂ¡s <leobras.c@...il.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.
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.
> ---
> scripts/mod/modpost.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
> index 0d998c54564d..368fe42340df 100644
> --- a/scripts/mod/modpost.c
> +++ b/scripts/mod/modpost.c
> @@ -2228,13 +2228,13 @@ static int add_versions(struct buffer *b, struct module *mod)
> }
>
> static void add_depends(struct buffer *b, struct module *mod,
> - struct module *modules)
> + struct module *module_list)
> {
> struct symbol *s;
> struct module *m;
> int first = 1;
>
> - for (m = modules; m; m = m->next)
> + for (m = module_list; m; m = m->next)
> m->seen = is_vmlinux(m->name);
>
> buf_printf(b, "\n");
> --
> 2.19.1
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists