|
@@ -50,7 +50,7 @@ struct e1000_stats {
|
|
|
int stat_offset;
|
|
|
};
|
|
|
|
|
|
-#define E1000_STAT(m) sizeof(((struct e1000_adapter *)0)->m), \
|
|
|
+#define E1000_STAT(m) FIELD_SIZEOF(struct e1000_adapter, m), \
|
|
|
offsetof(struct e1000_adapter, m)
|
|
|
static const struct e1000_stats e1000_gstrings_stats[] = {
|
|
|
{ "rx_packets", E1000_STAT(stats.gprc) },
|