diff options
| author | Thorsten Blum <[email protected]> | 2025-01-16 21:19:32 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-18 03:07:48 +0000 |
| commit | 3df22e75102785bac1768f7eeabbc45c01a6e7f4 (patch) | |
| tree | d72b4364be34d19e1a6628b33e415ddc5cbf9d05 /drivers/net/hyperv/hyperv_net.h | |
| parent | gtp: Prepare ip4_route_output_gtp() to .flowi4_tos conversion. (diff) | |
| download | kernel-3df22e75102785bac1768f7eeabbc45c01a6e7f4.tar.gz kernel-3df22e75102785bac1768f7eeabbc45c01a6e7f4.zip | |
hv_netvsc: Replace one-element array with flexible array member
Replace the deprecated one-element array with a modern flexible array
member in the struct nvsp_1_message_send_receive_buffer_complete.
Use struct_size_t(,,1) instead of sizeof() to maintain the same size.
Compile-tested only.
Link: https://github.com/KSPP/linux/issues/79
Signed-off-by: Thorsten Blum <[email protected]>
Tested-by: Roman Kisel <[email protected]>
Reviewed-by: Roman Kisel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
| -rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index e690b95b1bbb..234db693cefa 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -464,7 +464,7 @@ struct nvsp_1_message_send_receive_buffer_complete { * LargeOffset SmallOffset */ - struct nvsp_1_receive_buffer_section sections[1]; + struct nvsp_1_receive_buffer_section sections[]; } __packed; /* |
