modpost: Create macro to avoid variable shadowing
authorLeonardo Bras <leobras.c@gmail.com>
Wed, 24 Oct 2018 04:03:52 +0000 (01:03 -0300)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 28 Oct 2018 15:41:41 +0000 (00:41 +0900)
commitc2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb
tree30b6357b3e4926a21f06de575f6668b0bdd91890
parent9e1e8194332fa4c453bcbad434b5da17c1c7e4c5
modpost: Create macro to avoid variable shadowing

Create DEF_FIELD_ADDR_VAR as a more generic version of the DEF_FIELD_ADD
macro, allowing usage of a variable name other than the struct element name.
Also, sets DEF_FIELD_ADDR as a specific usage of DEF_FILD_ADDR_VAR in which
the var name is the same as the struct element name.
Then, makes use of DEF_FIELD_ADDR_VAR to create a variable of another name,
in order to avoid variable shadowing.

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/file2alias.c