linux/drivers/net/ethernet/chelsio
Arnd Bergmann ef5d6356e2 cxgb: avoid open-coded offsetof()
clang-14 does not like the custom offsetof() macro in vsc7326:

drivers/net/ethernet/chelsio/cxgb/vsc7326.c:597:3: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction]
                HW_STAT(RxUnicast, RxUnicastFramesOK),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/chelsio/cxgb/vsc7326.c:594:56: note: expanded from macro 'HW_STAT'
        { reg, (&((struct cmac_statistics *)NULL)->stat_name) - (u64 *)NULL }

Rewrite this to use the version provided by the kernel.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-27 14:04:23 +01:00
..
cxgb cxgb: avoid open-coded offsetof() 2021-09-27 14:04:23 +01:00
cxgb3 cxgb3: fix oops on module removal 2021-09-07 10:00:07 +01:00
cxgb4 pci-v5.15-changes 2021-09-07 19:13:42 -07:00
cxgb4vf net: chelsio: cxgb4vf: Make use of the helper function dev_err_probe() 2021-09-16 13:35:35 +01:00
inline_crypto net: sock: introduce sk_error_report 2021-06-29 11:28:21 -07:00
libcxgb net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile chelsio/chtls: separate chelsio tls driver from crypto driver 2020-08-21 14:15:15 -07:00