OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30e33b
)
net/packet: constify __packet_get_status() argument
author
Eric Dumazet
<edumazet@google.com>
Wed, 12 Jun 2019 16:52:26 +0000
(09:52 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 15 Jun 2019 01:52:14 +0000
(18:52 -0700)
struct packet_sock is only read.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
patch
|
blob
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index
7fa847d
..
66fcfd5
100644
(file)
--- 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;