net: qed_hsi.h: Avoid the use of one-element array
Subsystems (3)
PATCH 1/1 net: qed_hsi.h: Avoid the use of one-element array
One-element arrays are being deprecated[1]. Replace the one-element array with a simple value type '__le32 reserved1'[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/qlogic/qed/qed_hsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/qlogic/qed/qed_hsi.h +1 -1
@@ -361,7 +361,7 @@ struct core_tx_update_ramrod_data {u8 update_qm_pq_id_flg;u8 reserved0;__le16 qm_pq_id; -__le32 reserved1[1 ]; +__le32 reserved1; };/* Enum flag for what type of dcb data to update */
Signature · 1 line
2.27.0
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 22 Jul 2020 13:58:52 -0500
Quoted 10 lines
One-element arrays are being deprecated[1]. Replace the one-element array with a simple value type '
__le32reserved1'[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.
Quoted 7 lines · David Miller
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 22 Jul 2020 13:58:52 -0500Quoted 4 lines
One-element arrays are being deprecated[1]. Replace the one-element array with a simple value type '
__le32reserved1'[2], once it seems this is just a placeholder for alignment.
Quoted 9 lines
Quoted 6 lines
[1] https://github.com/KSPP/linux/issues/79
[2] https://github.com/KSPP/linux/issues/86Applied.
Thanks, Dave.
--
Gustavo