Skip to content

Commit 8baf82b

Browse files
gregkhdavem330
authored andcommitted
CONFIG_HOTPLUG removal from networking core
CONFIG_HOTPLUG is always enabled now, so remove the unused code that was trying to be compiled out when this option was disabled, in the networking core. Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 03ce758 commit 8baf82b

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎net/core/net-sysfs.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,6 @@ struct kobj_ns_type_operations net_ns_type_operations = {
13341334
};
13351335
EXPORT_SYMBOL_GPL(net_ns_type_operations);
13361336

1337-
#ifdef CONFIG_HOTPLUG
13381337
static int netdev_uevent(struct device *d, struct kobj_uevent_env *env)
13391338
{
13401339
struct net_device *dev = to_net_dev(d);
@@ -1353,7 +1352,6 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env)
13531352
exit:
13541353
return retval;
13551354
}
1356-
#endif
13571355

13581356
/*
13591357
* netdev_release -- destroy and free a dead device.
@@ -1382,9 +1380,7 @@ static struct class net_class = {
13821380
#ifdef CONFIG_SYSFS
13831381
.dev_attrs = net_class_attributes,
13841382
#endif /* CONFIG_SYSFS */
1385-
#ifdef CONFIG_HOTPLUG
13861383
.dev_uevent = netdev_uevent,
1387-
#endif
13881384
.ns_type = &net_ns_type_operations,
13891385
.namespace = net_namespace,
13901386
};

‎net/wireless/reg.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,6 @@ int set_regdom(const struct ieee80211_regdomain *rd)
23652365
return r;
23662366
}
23672367

2368-
#ifdef CONFIG_HOTPLUG
23692368
int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env)
23702369
{
23712370
if (last_request && !last_request->processed) {
@@ -2377,12 +2376,6 @@ int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env)
23772376

23782377
return 0;
23792378
}
2380-
#else
2381-
int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env)
2382-
{
2383-
return -ENODEV;
2384-
}
2385-
#endif /* CONFIG_HOTPLUG */
23862379

23872380
void wiphy_regulatory_register(struct wiphy *wiphy)
23882381
{

‎net/wireless/sysfs.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,11 @@ static void wiphy_dev_release(struct device *dev)
7777
cfg80211_dev_free(rdev);
7878
}
7979

80-
#ifdef CONFIG_HOTPLUG
8180
static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env)
8281
{
8382
/* TODO, we probably need stuff here */
8483
return 0;
8584
}
86-
#endif
8785

8886
static int wiphy_suspend(struct device *dev, pm_message_t state)
8987
{
@@ -134,9 +132,7 @@ struct class ieee80211_class = {
134132
.owner = THIS_MODULE,
135133
.dev_release = wiphy_dev_release,
136134
.dev_attrs = ieee80211_dev_attrs,
137-
#ifdef CONFIG_HOTPLUG
138135
.dev_uevent = wiphy_uevent,
139-
#endif
140136
.suspend = wiphy_suspend,
141137
.resume = wiphy_resume,
142138
.ns_type = &net_ns_type_operations,

0 commit comments

Comments
 (0)