From 173e7837a20a4cb26d6097f6b968c17344b5189c Mon Sep 17 00:00:00 2001 From: linzhang Date: Mon, 15 May 2017 10:26:47 +0800 Subject: net: socket: mark socket protocol handler structs as const Signed-off-by: linzhang Signed-off-by: David S. Miller --- net/kcm/kcmsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/kcm') diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c index deca20f..da49191 100644 --- a/net/kcm/kcmsock.c +++ b/net/kcm/kcmsock.c @@ -1985,7 +1985,7 @@ static int kcm_create(struct net *net, struct socket *sock, return 0; } -static struct net_proto_family kcm_family_ops = { +static const struct net_proto_family kcm_family_ops = { .family = PF_KCM, .create = kcm_create, .owner = THIS_MODULE, -- cgit v1.1