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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>