net: socket: mark socket protocol handler structs as const

Signed-off-by: linzhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
linzhang 2017-05-15 10:26:47 +08:00 • committed by David S. Miller
commit 173e7837a2
4 changed files with 4 additions and 4 deletions

View file

@ -733,7 +733,7 @@ void bt_procfs_cleanup(struct net *net, const char *name)
EXPORT_SYMBOL(bt_procfs_init);
EXPORT_SYMBOL(bt_procfs_cleanup);
static struct net_proto_family bt_sock_family_ops = {
static const struct net_proto_family bt_sock_family_ops = {
.owner = THIS_MODULE,
.family = PF_BLUETOOTH,
.create = bt_sock_create,