Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec1b4cf7 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

net: mark net_proto_ops as const



All usages of structure net_proto_ops should be declared const.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f7734fdf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -808,8 +808,7 @@ mISDN_sock_create(struct net *net, struct socket *sock, int proto)
	return err;
}

static struct
net_proto_family mISDN_sock_family_ops = {
static const struct net_proto_family mISDN_sock_family_ops = {
	.owner  = THIS_MODULE,
	.family = PF_ISDN,
	.create = mISDN_sock_create,
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ static int pppox_create(struct net *net, struct socket *sock, int protocol)
	return rc;
}

static struct net_proto_family pppox_proto_family = {
static const struct net_proto_family pppox_proto_family = {
	.family	= PF_PPPOX,
	.create	= pppox_create,
	.owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ struct bt_sock_list {
	rwlock_t          lock;
};

int  bt_sock_register(int proto, struct net_proto_family *ops);
int  bt_sock_register(int proto, const struct net_proto_family *ops);
int  bt_sock_unregister(int proto);
void bt_sock_link(struct bt_sock_list *l, struct sock *s);
void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
+1 −1
Original line number Diff line number Diff line
@@ -1821,7 +1821,7 @@ static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned lo
#endif


static struct net_proto_family atalk_family_ops = {
static const struct net_proto_family atalk_family_ops = {
	.family		= PF_APPLETALK,
	.create		= atalk_create,
	.owner		= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ static int pvc_create(struct net *net, struct socket *sock,int protocol)
}


static struct net_proto_family pvc_family_ops = {
static const struct net_proto_family pvc_family_ops = {
	.family = PF_ATMPVC,
	.create = pvc_create,
	.owner = THIS_MODULE,
Loading