diff options
author | Leonardo Bras <leobras.c@gmail.com> | 2018-10-24 06:03:52 +0200 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-10-28 16:41:41 +0100 |
commit | c2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb (patch) | |
tree | 30b6357b3e4926a21f06de575f6668b0bdd91890 /drivers/net/usb/lan78xx.c | |
parent | ASN.1: Remove unnecessary shadowed local variable (diff) | |
download | linux-c2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb.tar.xz linux-c2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb.zip |
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>
Diffstat (limited to 'drivers/net/usb/lan78xx.c')
0 files changed, 0 insertions, 0 deletions