]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0c65abe08b7394ea7f48000fa639109e778207f
tree30b6357b3e4926a21f06de575f6668b0bdd91890
parent5fa9efbcb6f9c5992a7c4a8572eba240b0f687d8
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