--- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3651,7 +3651,7 @@ static const struct genl_ops hwsim_ops[] }, }; -static struct genl_family hwsim_genl_family __ro_after_init = { +static struct genl_family hwsim_genl_family __genl_ro_after_init = { .name = "MAC80211_HWSIM", .version = 1, .maxattr = HWSIM_ATTR_MAX,