File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) \
156149do { \
You can’t perform that action at this time.
0 commit comments