* [PATCH] net: socket: mark socket protocol handler structs as const
@ 2017-05-15 2:26 linzhang
[not found] ` <1494815207-9378-1-git-send-email-xiaolou4617-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: linzhang @ 2017-05-15 2:26 UTC (permalink / raw)
To: marcel, gustavo, johan.hedberg, davem
Cc: dmitry.tarnyagin, sameo, nhorman, linux-bluetooth, netdev,
linux-kernel, linux-wireless, linzhang
Signed-off-by: linzhang <xiaolou4617@gmail.com>
---
net/bluetooth/af_bluetooth.c | 2 +-
net/caif/caif_socket.c | 2 +-
net/kcm/kcmsock.c | 2 +-
net/nfc/af_nfc.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 42d0997..8a8f77a 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -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,
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
index adcad34..4674d17 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,
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,
diff --git a/net/nfc/af_nfc.c b/net/nfc/af_nfc.c
index 54e40fa..d3e594e 100644
--- a/net/nfc/af_nfc.c
+++ b/net/nfc/af_nfc.c
@@ -48,7 +48,7 @@ static int nfc_sock_create(struct net *net, struct socket *sock, int proto,
return rc;
}
-static struct net_proto_family nfc_sock_family_ops = {
+static const struct net_proto_family nfc_sock_family_ops = {
.owner = THIS_MODULE,
.family = PF_NFC,
.create = nfc_sock_create,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: socket: mark socket protocol handler structs as const
[not found] ` <1494815207-9378-1-git-send-email-xiaolou4617-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-05-16 15:55 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-05-16 15:55 UTC (permalink / raw)
To: xiaolou4617-Re5JQEeQqe8AvxtiuMwx3w
Cc: marcel-kz+m5ild9QBg9hUCZPvPmw, gustavo-THi1TnShQwVAfugRpC6u6w,
johan.hedberg-Re5JQEeQqe8AvxtiuMwx3w,
dmitry.tarnyagin-0TCahj4L2NoXWF+eFR7m5Q,
sameo-VuQAYsv1563Yd54FQh9/CA, nhorman-2XuSBdqkA4R54TAoqtyWWQ,
linux-bluetooth-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-wireless-u79uwXL29TY76Z2rM5mHXA
From: linzhang <xiaolou4617-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Mon, 15 May 2017 10:26:47 +0800
> Signed-off-by: linzhang <xiaolou4617-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-16 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15 2:26 [PATCH] net: socket: mark socket protocol handler structs as const linzhang
[not found] ` <1494815207-9378-1-git-send-email-xiaolou4617-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-16 15:55 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).