Message ID | 84871.1682082533@warthog.procyon.org.uk (mailing list archive) |
---|---|
State | Mainlined |
Commit | 788352191c85326beb74f518ba761ed38b82f533 |
Headers | show |
Series | [net-next] rxrpc: Replace fake flex-array with flexible-array member | expand |
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller <davem@davemloft.net>: On Fri, 21 Apr 2023 14:08:53 +0100 you wrote: > From: Gustavo A. R. Silva <gustavoars@kernel.org> > > Zero-length arrays as fake flexible arrays are deprecated and we are > moving towards adopting C99 flexible-array members instead. > > Transform zero-length array into flexible-array member in struct > rxrpc_ackpacket. > > [...] Here is the summary with links: - [net-next] rxrpc: Replace fake flex-array with flexible-array member https://git.kernel.org/netdev/net-next/c/788352191c85 You are awesome, thank you!
diff --git a/net/rxrpc/protocol.h b/net/rxrpc/protocol.h index 6760cb99c6d6..e8ee4af43ca8 100644 --- a/net/rxrpc/protocol.h +++ b/net/rxrpc/protocol.h @@ -126,7 +126,7 @@ struct rxrpc_ackpacket { uint8_t nAcks; /* number of ACKs */ #define RXRPC_MAXACKS 255 - uint8_t acks[0]; /* list of ACK/NAKs */ + uint8_t acks[]; /* list of ACK/NAKs */ #define RXRPC_ACK_TYPE_NACK 0 #define RXRPC_ACK_TYPE_ACK 1