Skip to content

Commit c4d1a9f

Browse files
committed
modpost: remove DEF_FIELD_ADDR_VAR() macro
With the former cleanups in do_pnp_card_entries(), this macro is no longer used by anyone. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent d92b7a3 commit c4d1a9f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/mod/file2alias.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,12 @@ struct devtable {
138138
#define DEF_FIELD(m, devid, f) \
139139
typeof(((struct devid *)0)->f) f = TO_NATIVE(*(typeof(f) *)((m) + OFF_##devid##_##f))
140140

141-
/* Define a variable v that holds the address of field f of struct devid
142-
* based at address m. Due to the way typeof works, for a field of type
143-
* T[N] the variable has type T(*)[N], _not_ T*.
144-
*/
145-
#define DEF_FIELD_ADDR_VAR(m, devid, f, v) \
146-
typeof(((struct devid *)0)->f) *v = ((m) + OFF_##devid##_##f)
147-
148141
/* Define a variable f that holds the address of field f of struct devid
149142
* based at address m. Due to the way typeof works, for a field of type
150143
* T[N] the variable has type T(*)[N], _not_ T*.
151144
*/
152145
#define DEF_FIELD_ADDR(m, devid, f) \
153-
DEF_FIELD_ADDR_VAR(m, devid, f, f)
146+
typeof(((struct devid *)0)->f) *f = ((m) + OFF_##devid##_##f)
154147

155148
#define ADD(str, sep, cond, field) \
156149
do { \

0 commit comments

Comments
 (0)