.. | .. |
---|
19 | 19 | }; |
---|
20 | 20 | |
---|
21 | 21 | #define IXGB_STAT(m) IXGB_STATS, \ |
---|
22 | | - FIELD_SIZEOF(struct ixgb_adapter, m), \ |
---|
| 22 | + sizeof_field(struct ixgb_adapter, m), \ |
---|
23 | 23 | offsetof(struct ixgb_adapter, m) |
---|
24 | 24 | #define IXGB_NETDEV_STAT(m) NETDEV_STATS, \ |
---|
25 | | - FIELD_SIZEOF(struct net_device, m), \ |
---|
| 25 | + sizeof_field(struct net_device, m), \ |
---|
26 | 26 | offsetof(struct net_device, m) |
---|
27 | 27 | |
---|
28 | 28 | static struct ixgb_stats ixgb_gstrings_stats[] = { |
---|
.. | .. |
---|
458 | 458 | |
---|
459 | 459 | strlcpy(drvinfo->driver, ixgb_driver_name, |
---|
460 | 460 | sizeof(drvinfo->driver)); |
---|
461 | | - strlcpy(drvinfo->version, ixgb_driver_version, |
---|
462 | | - sizeof(drvinfo->version)); |
---|
463 | 461 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
---|
464 | 462 | sizeof(drvinfo->bus_info)); |
---|
465 | 463 | } |
---|