diff options
author | Leonardo Bras <leobras.c@gmail.com> | 2018-10-24 07:03:52 +0300 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-10-28 18:41:41 +0300 |
commit | c2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb (patch) | |
tree | 30b6357b3e4926a21f06de575f6668b0bdd91890 /mm/swap_state.c | |
parent | 9e1e8194332fa4c453bcbad434b5da17c1c7e4c5 (diff) | |
download | linux-c2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb.tar.xz |
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 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions