[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230317155539.2552954-1-edumazet@google.com>
Date: Fri, 17 Mar 2023 15:55:29 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, David Ahern <dsahern@...nel.org>,
Simon Horman <simon.horman@...igine.com>,
Willem de Bruijn <willemb@...gle.com>,
Matthieu Baerts <matthieu.baerts@...sares.net>,
eric.dumazet@...il.com, Eric Dumazet <edumazet@...gle.com>
Subject: [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(-)
--
2.40.0.rc2.332.ga46443480c-goog
Powered by blists - more mailing lists