From: Johannes Berg Date: Thu, 20 Sep 2018 07:27:30 +0000 (+0200) Subject: smc: generic netlink family should be __ro_after_init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=56ce3c5a50f4d8cc95361b1ec7f152006c6320d8;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c index 01c6ce042a1cd..7cb3e4f07c10f 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,