* [PATCH v2 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS
@ 2018-10-23 1:13 Leonardo Brás
0 siblings, 0 replies; only message in thread
From: Leonardo Brás @ 2018-10-23 1:13 UTC (permalink / raw)
To: lkcamp
Cc: Borislav Petkov, David.Laight, Andy Lutomirski, Ingo Molnar,
helen, Masahiro Yamada, Michal Marek, linux-kbuild, linux-kernel
Changes in v2:
1- Makefile change is the last, so there is no extra warnings on building
intermediate commits.
2- Replaced -Wshadow=local with -Wshadow
3- Created macro to accept variable name instead of changing logic in
file2alias.c
4- Drops if/else logic change in asn1_compiler.c
5- Renames variables to meaningful names in vdso2c.h
- The previous logic in file2alias.c will be available on a separated patch
Leonardo Brás (5):
x86/vdso: Renames variable to fix shadow warning.
kbuild: Removes unnecessary shadowed local variable.
Creates macro to avoid variable shadowing
modpost: Changes parameter name to avoid shadowing.
Adds -Wshadow on KBUILD_HOSTCFLAGS
Makefile | 2 +-
arch/x86/entry/vdso/vdso2c.h | 13 +++++++------
scripts/asn1_compiler.c | 2 +-
scripts/mod/file2alias.c | 24 +++++++++++++++++-------
scripts/mod/modpost.c | 4 ++--
5 files changed, 28 insertions(+), 17 deletions(-)
--
2.19.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-23 1:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23 1:13 [PATCH v2 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS Leonardo Brás
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).