diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/event.c | 4 | ||||
-rw-r--r-- | drivers/net/gtp.c | 2 | ||||
-rw-r--r-- | drivers/net/macsec.c | 2 | ||||
-rw-r--r-- | drivers/net/team/team.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 4 | ||||
-rw-r--r-- | drivers/scsi/pmcraid.c | 4 | ||||
-rw-r--r-- | drivers/target/target_core_user.c | 2 | ||||
-rw-r--r-- | drivers/thermal/thermal_core.c | 4 |
8 files changed, 13 insertions, 13 deletions
diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c index 1ab12ad7d5ba..7fceb3b4691b 100644 --- a/drivers/acpi/event.c +++ b/drivers/acpi/event.c | |||
@@ -82,7 +82,7 @@ static const struct genl_multicast_group acpi_event_mcgrps[] = { | |||
82 | { .name = ACPI_GENL_MCAST_GROUP_NAME, }, | 82 | { .name = ACPI_GENL_MCAST_GROUP_NAME, }, |
83 | }; | 83 | }; |
84 | 84 | ||
85 | static struct genl_family acpi_event_genl_family = { | 85 | static struct genl_family acpi_event_genl_family __ro_after_init = { |
86 | .module = THIS_MODULE, | 86 | .module = THIS_MODULE, |
87 | .name = ACPI_GENL_FAMILY_NAME, | 87 | .name = ACPI_GENL_FAMILY_NAME, |
88 | .version = ACPI_GENL_VERSION, | 88 | .version = ACPI_GENL_VERSION, |
@@ -144,7 +144,7 @@ int acpi_bus_generate_netlink_event(const char *device_class, | |||
144 | 144 | ||
145 | EXPORT_SYMBOL(acpi_bus_generate_netlink_event); | 145 | EXPORT_SYMBOL(acpi_bus_generate_netlink_event); |
146 | 146 | ||
147 | static int acpi_event_genetlink_init(void) | 147 | static int __init acpi_event_genetlink_init(void) |
148 | { | 148 | { |
149 | return genl_register_family(&acpi_event_genl_family); | 149 | return genl_register_family(&acpi_event_genl_family); |
150 | } | 150 | } |
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c index 0604fd78f826..719d19f35673 100644 --- a/drivers/net/gtp.c +++ b/drivers/net/gtp.c | |||
@@ -1290,7 +1290,7 @@ static const struct genl_ops gtp_genl_ops[] = { | |||
1290 | }, | 1290 | }, |
1291 | }; | 1291 | }; |
1292 | 1292 | ||
1293 | static struct genl_family gtp_genl_family = { | 1293 | static struct genl_family gtp_genl_family __ro_after_init = { |
1294 | .name = "gtp", | 1294 | .name = "gtp", |
1295 | .version = 0, | 1295 | .version = 0, |
1296 | .hdrsize = 0, | 1296 | .hdrsize = 0, |
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 63ca7a3c77cf..0a715ab9d9cc 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c | |||
@@ -2648,7 +2648,7 @@ static const struct genl_ops macsec_genl_ops[] = { | |||
2648 | }, | 2648 | }, |
2649 | }; | 2649 | }; |
2650 | 2650 | ||
2651 | static struct genl_family macsec_fam = { | 2651 | static struct genl_family macsec_fam __ro_after_init = { |
2652 | .name = MACSEC_GENL_NAME, | 2652 | .name = MACSEC_GENL_NAME, |
2653 | .hdrsize = 0, | 2653 | .hdrsize = 0, |
2654 | .version = MACSEC_GENL_VERSION, | 2654 | .version = MACSEC_GENL_VERSION, |
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 46bf7c1216c0..bdc58567d10e 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c | |||
@@ -2740,7 +2740,7 @@ static const struct genl_multicast_group team_nl_mcgrps[] = { | |||
2740 | { .name = TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME, }, | 2740 | { .name = TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME, }, |
2741 | }; | 2741 | }; |
2742 | 2742 | ||
2743 | static struct genl_family team_nl_family = { | 2743 | static struct genl_family team_nl_family __ro_after_init = { |
2744 | .name = TEAM_GENL_NAME, | 2744 | .name = TEAM_GENL_NAME, |
2745 | .version = TEAM_GENL_VERSION, | 2745 | .version = TEAM_GENL_VERSION, |
2746 | .maxattr = TEAM_ATTR_MAX, | 2746 | .maxattr = TEAM_ATTR_MAX, |
@@ -2773,7 +2773,7 @@ static int team_nl_send_event_port_get(struct team *team, | |||
2773 | port); | 2773 | port); |
2774 | } | 2774 | } |
2775 | 2775 | ||
2776 | static int team_nl_init(void) | 2776 | static int __init team_nl_init(void) |
2777 | { | 2777 | { |
2778 | return genl_register_family(&team_nl_family); | 2778 | return genl_register_family(&team_nl_family); |
2779 | } | 2779 | } |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 5d4637e586e8..220e9dc8ccf8 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -3228,7 +3228,7 @@ static const struct genl_ops hwsim_ops[] = { | |||
3228 | }, | 3228 | }, |
3229 | }; | 3229 | }; |
3230 | 3230 | ||
3231 | static struct genl_family hwsim_genl_family = { | 3231 | static struct genl_family hwsim_genl_family __ro_after_init = { |
3232 | .name = "MAC80211_HWSIM", | 3232 | .name = "MAC80211_HWSIM", |
3233 | .version = 1, | 3233 | .version = 1, |
3234 | .maxattr = HWSIM_ATTR_MAX, | 3234 | .maxattr = HWSIM_ATTR_MAX, |
@@ -3287,7 +3287,7 @@ static struct notifier_block hwsim_netlink_notifier = { | |||
3287 | .notifier_call = mac80211_hwsim_netlink_notify, | 3287 | .notifier_call = mac80211_hwsim_netlink_notify, |
3288 | }; | 3288 | }; |
3289 | 3289 | ||
3290 | static int hwsim_init_netlink(void) | 3290 | static int __init hwsim_init_netlink(void) |
3291 | { | 3291 | { |
3292 | int rc; | 3292 | int rc; |
3293 | 3293 | ||
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index c0ab7bb8c3ce..845affa112f7 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -1368,7 +1368,7 @@ static struct genl_multicast_group pmcraid_mcgrps[] = { | |||
1368 | { .name = "events", /* not really used - see ID discussion below */ }, | 1368 | { .name = "events", /* not really used - see ID discussion below */ }, |
1369 | }; | 1369 | }; |
1370 | 1370 | ||
1371 | static struct genl_family pmcraid_event_family = { | 1371 | static struct genl_family pmcraid_event_family __ro_after_init = { |
1372 | .module = THIS_MODULE, | 1372 | .module = THIS_MODULE, |
1373 | .name = "pmcraid", | 1373 | .name = "pmcraid", |
1374 | .version = 1, | 1374 | .version = 1, |
@@ -1384,7 +1384,7 @@ static struct genl_family pmcraid_event_family = { | |||
1384 | * 0 if the pmcraid_event_family is successfully registered | 1384 | * 0 if the pmcraid_event_family is successfully registered |
1385 | * with netlink generic, non-zero otherwise | 1385 | * with netlink generic, non-zero otherwise |
1386 | */ | 1386 | */ |
1387 | static int pmcraid_netlink_init(void) | 1387 | static int __init pmcraid_netlink_init(void) |
1388 | { | 1388 | { |
1389 | int result; | 1389 | int result; |
1390 | 1390 | ||
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 3483372f5562..0f173bf7dbac 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c | |||
@@ -147,7 +147,7 @@ static const struct genl_multicast_group tcmu_mcgrps[] = { | |||
147 | }; | 147 | }; |
148 | 148 | ||
149 | /* Our generic netlink family */ | 149 | /* Our generic netlink family */ |
150 | static struct genl_family tcmu_genl_family = { | 150 | static struct genl_family tcmu_genl_family __ro_after_init = { |
151 | .module = THIS_MODULE, | 151 | .module = THIS_MODULE, |
152 | .hdrsize = 0, | 152 | .hdrsize = 0, |
153 | .name = "TCM-USER", | 153 | .name = "TCM-USER", |
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 93b6caab2d9f..911fd964c742 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c | |||
@@ -2163,7 +2163,7 @@ static const struct genl_multicast_group thermal_event_mcgrps[] = { | |||
2163 | { .name = THERMAL_GENL_MCAST_GROUP_NAME, }, | 2163 | { .name = THERMAL_GENL_MCAST_GROUP_NAME, }, |
2164 | }; | 2164 | }; |
2165 | 2165 | ||
2166 | static struct genl_family thermal_event_genl_family = { | 2166 | static struct genl_family thermal_event_genl_family __ro_after_init = { |
2167 | .module = THIS_MODULE, | 2167 | .module = THIS_MODULE, |
2168 | .name = THERMAL_GENL_FAMILY_NAME, | 2168 | .name = THERMAL_GENL_FAMILY_NAME, |
2169 | .version = THERMAL_GENL_VERSION, | 2169 | .version = THERMAL_GENL_VERSION, |
@@ -2235,7 +2235,7 @@ int thermal_generate_netlink_event(struct thermal_zone_device *tz, | |||
2235 | } | 2235 | } |
2236 | EXPORT_SYMBOL_GPL(thermal_generate_netlink_event); | 2236 | EXPORT_SYMBOL_GPL(thermal_generate_netlink_event); |
2237 | 2237 | ||
2238 | static int genetlink_init(void) | 2238 | static int __init genetlink_init(void) |
2239 | { | 2239 | { |
2240 | return genl_register_family(&thermal_event_genl_family); | 2240 | return genl_register_family(&thermal_event_genl_family); |
2241 | } | 2241 | } |