File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -138,19 +138,12 @@ struct devtable {
138
138
#define DEF_FIELD (m , devid , f ) \
139
139
typeof(((struct devid *)0)->f) f = TO_NATIVE(*(typeof(f) *)((m) + OFF_##devid##_##f))
140
140
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
-
148
141
/* Define a variable f that holds the address of field f of struct devid
149
142
* based at address m. Due to the way typeof works, for a field of type
150
143
* T[N] the variable has type T(*)[N], _not_ T*.
151
144
*/
152
145
#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)
154
147
155
148
#define ADD (str , sep , cond , field ) \
156
149
do { \
You can’t perform that action at this time.
0 commit comments