Skip to content

Adds -Wshadow on KBUILD_HOSTCFLAGS

Leonardo Brás linux-kbuild lkml 2 versions – In review

Get series with b4
b4 am 20181023011344.GA6836@WindFlash

Versions newest first · linked by author and title

  1. v2 Latest5 patches 7 repliesIn review
  2. v14 patches 28 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/vdso: Renames variable to fix shadow warning.arch/x86/entry/vdso/vdso2c.h+7 -62 replies
2/5kbuild: Removes unnecessary shadowed local variable.scripts/asn1_compiler.c+1 -10 replies
3/5Creates macro to avoid variable shadowingscripts/mod/file2alias.c+17 -75 replies
4/5modpost: Changes parameter name to avoid shadowing.scripts/mod/modpost.c+2 -20 replies
5/5Adds -Wshadow on KBUILD_HOSTCFLAGSMakefile+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS

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(-)
Signature · 1 line
2.19.1