--- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2483,7 +2483,7 @@ static int hwsim_destroy_radio_nl(struct } /* Generic Netlink operations array */ -static const struct genl_ops hwsim_ops[] = { +static __genl_const struct genl_ops hwsim_ops[] = { { .cmd = HWSIM_CMD_REGISTER, .policy = hwsim_genl_policy,