tg3: Avoid the use of one-element array
Subsystems (3)
PATCH 1/1 tg3: Avoid the use of one-element array
One-element arrays are being deprecated[1]. Replace the one-element array with a simple value type 'u32 reserved2'[2], once it seems this is just a placeholder for alignment.
[1] https://github.com/KSPP/linux/issues/79
[2] https://github.com/KSPP/linux/issues/86
--- drivers/net/ethernet/broadcom/tg3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/tg3.h +1 -1
@@ -2847,7 +2847,7 @@ struct tg3_ocir {u32 port1_flags;u32 port2_flags;u32 port3_flags; -u32 reserved2[1 ]; +u32 reserved2; };
Signature · 1 line
2.27.0
Quoted 11 lines · Gustavo A. R. Silva
One-element arrays are being deprecated[1]. Replace the one-element array with a simple value type 'u32 reserved2'[2], once it seems this is just a placeholder for alignment.
[1] https://github.com/KSPP/linux/issues/79
[2] https://github.com/KSPP/linux/issues/86
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 22 Jul 2020 13:43:58 -0500
Quoted 10 lines
One-element arrays are being deprecated[1]. Replace the one-element array with a simple value type 'u32 reserved2'[2], once it seems this is just a placeholder for alignment.
[1] https://github.com/KSPP/linux/issues/79
[2] https://github.com/KSPP/linux/issues/86
Applied, thank you.