diff options
author | Eric Dumazet <edumazet@google.com> | 2019-06-12 09:52:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-14 18:52:14 -0700 |
commit | 96f657e6cfc25b27d8189cb6b9eac66e1b1ff4f3 (patch) | |
tree | aab26f9bcbf514b0f4151e353e1ec6855f6519eb | |
parent | f30e33bcdab9d541febfb56a04c6bb7d8026accc (diff) | |
download | linux-stable-96f657e6cfc25b27d8189cb6b9eac66e1b1ff4f3.tar.gz linux-stable-96f657e6cfc25b27d8189cb6b9eac66e1b1ff4f3.tar.bz2 linux-stable-96f657e6cfc25b27d8189cb6b9eac66e1b1ff4f3.zip |
net/packet: constify __packet_get_status() argument
struct packet_sock is only read.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 7fa847dcea30..66fcfd5b51f8 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -384,7 +384,7 @@ static void __packet_set_status(struct packet_sock *po, void *frame, int status) smp_wmb(); } -static int __packet_get_status(struct packet_sock *po, void *frame) +static int __packet_get_status(const struct packet_sock *po, void *frame) { union tpacket_uhdr h; |