net: better const qualifier awareness
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 10 applied
Reviews trailers per patch
All 10 patches have a Reviewed-by or Acked-by.
| Patch | Simon Horman | Matthieu Baerts | Wenjia Zhang |
|---|---|---|---|
| 1/10 | R-b | ||
| 2/10 | R-b | ||
| 3/10 | R-b | ||
| 4/10 | R-b | ||
| 5/10 | R-b | ||
| 6/10 | R-b | ||
| 7/10 | R-b | R-b | |
| 8/10 | R-b | ||
| 9/10 | R-b | R-b | |
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net-next 00/10] net: better const qualifier awareness
This is a follow-up of d27d367d3b78 ("inet: better const qualifier awareness")
Adopting container_of_const() to perform (struct sock *)->(protocol sock *) operation is allowing us to propagate const qualifier and thus detect misuses at compile time.
Most conversions are trivial, because most protocols did not adopt yet const sk pointers where it could make sense.
Only mptcp and tcp patches (end of this series) are requiring small adjustments.
Thanks !
Eric Dumazet (10):
udp: preserve const qualifier in udp_sk()
af_packet: preserve const qualifier in pkt_sk()
raw: preserve const qualifier in raw_sk() ipv6: raw: preserve const qualifier in raw6_sk() dccp: preserve const qualifier in dccp_sk() af_unix: preserve const qualifier in unix_sk() smc: preserve const qualifier in smc_sk() x25: preserve const qualifier in [a]x25_sk() mptcp: preserve const qualifier in mptcp_sk() tcp: preserve const qualifier in tcp_sk()
include/linux/dccp.h | 6 ++---- include/linux/ipv6.h | 5 +---- include/linux/tcp.h | 10 ++++++---- include/linux/udp.h | 5 +---- include/net/af_unix.h | 5 +---- include/net/ax25.h | 5 +---- include/net/raw.h | 5 +---- include/net/tcp.h | 2 +- include/net/x25.h | 5 +---- net/ipv4/tcp.c | 2 +- net/ipv4/tcp_input.c | 4 ++-- net/ipv4/tcp_minisocks.c | 5 +++-- net/ipv4/tcp_output.c | 9 +++++++-- net/ipv4/tcp_recovery.c | 2 +- net/mptcp/protocol.c | 2 +- net/mptcp/protocol.h | 9 +++------ net/packet/internal.h | 5 +---- net/smc/smc.h | 5 +---- security/lsm_audit.c | 2 +- 19 files changed, 36 insertions(+), 57 deletions(-)
Signature · 1 line
2.40.0.rc2.332.ga46443480c-goog