1
0
Fork 0

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>
alistair/sunxi64-5.4-dsi
Eric Dumazet 2019-06-12 09:52:26 -07:00 committed by David S. Miller
parent f30e33bcda
commit 96f657e6cf
1 changed files with 1 additions and 1 deletions

View File

@ -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;