From: Eric Dumazet Date: Wed, 12 Jun 2019 16:52:26 +0000 (-0700) Subject: net/packet: constify __packet_get_status() argument X-Git-Tag: v5.15~5991^2~250^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=96f657e6cfc25b27d8189cb6b9eac66e1b1ff4f3;p=mirror_ubuntu-kernels.git net/packet: constify __packet_get_status() argument struct packet_sock is only read. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- 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;