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>
このコミットが含まれているのは:
linzhang
2017-05-15 10:26:47 +08:00
committed by David S. Miller
コミット 173e7837a2
4個のファイルの変更4行の追加4行の削除

ファイルの表示

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