summary refs log tree commit diff
path: root/lib/fonts
diff options
context:
space:
mode:
authorLeonardo Bras <leobras.c@gmail.com>2018-10-24 01:03:52 -0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-29 00:41:41 +0900
commitc2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb (patch)
tree30b6357b3e4926a21f06de575f6668b0bdd91890 /lib/fonts
parent9e1e8194332fa4c453bcbad434b5da17c1c7e4c5 (diff)
downloadlinux-c2b1a9226fe7c1cee8f0ae42496f3eb282d73ebb.tar.gz
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 'lib/fonts')
0 files changed, 0 insertions, 0 deletions