Skip to content

Commit

Permalink
smc: generic netlink family should be __ro_after_init
Browse files Browse the repository at this point in the history
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>
Johannes Berg authored and David S. Miller committed Sep 20, 2018
1 parent f9d5b1d commit 56ce3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/smc/smc_pnet.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 56ce3c5

Please sign in to comment.