net: socket: mark socket protocol handler structs as const
Signed-off-by: linzhang <xiaolou4617@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
9aef88ec85
commit
173e7837a2
@@ -1099,7 +1099,7 @@ static int caif_create(struct net *net, struct socket *sock, int protocol,
|
||||
}
|
||||
|
||||
|
||||
static struct net_proto_family caif_family_ops = {
|
||||
static const struct net_proto_family caif_family_ops = {
|
||||
.family = PF_CAIF,
|
||||
.create = caif_create,
|
||||
.owner = THIS_MODULE,
|
||||
|
Reference in New Issue
Block a user