summaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-09-20 09:27:30 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-20 07:49:55 -0700
commit56ce3c5a50f4d8cc95361b1ec7f152006c6320d8 (patch)
treed9c00fef04b402065e97609497de3ee586e3a7a1 /net/smc
parentf9d5b1d50840320fb6c66fafd1a532a995fc3758 (diff)
downloadlinux-56ce3c5a50f4d8cc95361b1ec7f152006c6320d8.tar.gz
linux-56ce3c5a50f4d8cc95361b1ec7f152006c6320d8.tar.bz2
linux-56ce3c5a50f4d8cc95361b1ec7f152006c6320d8.zip
smc: generic netlink family should be __ro_after_init
The generic netlink family is only initialized during module init, so it should be __ro_after_init like all other generic netlink families. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
-rw-r--r--net/smc/smc_pnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c
index 01c6ce042a1c..7cb3e4f07c10 100644
--- a/net/smc/smc_pnet.c
+++ b/net/smc/smc_pnet.c
@@ -461,7 +461,7 @@ static const struct genl_ops smc_pnet_ops[] = {
};
/* SMC_PNETID family definition */
-static struct genl_family smc_pnet_nl_family = {
+static struct genl_family smc_pnet_nl_family __ro_after_init = {
.hdrsize = 0,
.name = SMCR_GENL_FAMILY_NAME,
.version = SMCR_GENL_FAMILY_VERSION,