summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorlinzhang <xiaolou4617@gmail.com>2017-05-15 04:26:47 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-16 17:54:07 +0200
commit173e7837a20a4cb26d6097f6b968c17344b5189c (patch)
tree14fb6490d49b530234ea5f748b1d68bec8a0ee8b /net/caif
parenttools: hv: Add clean up for included files in Ubuntu net config (diff)
downloadlinux-173e7837a20a4cb26d6097f6b968c17344b5189c.tar.xz
linux-173e7837a20a4cb26d6097f6b968c17344b5189c.zip
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>
Diffstat (limited to 'net/caif')
-rw-r--r--net/caif/caif_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
index adcad344c843..4674d17e7c08 100644
--- a/net/caif/caif_socket.c
+++ b/net/caif/caif_socket.c
@@ -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,