mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
kernel/ksysfs.c:fix dependence on CONFIG_NET
Access to uevent_seqnum and uevent_helper does not need to depend on CONFIG_NET, so remove it. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e0d7bf5d58
commit
cd3772e689
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
|
||||||
static struct kobj_attribute _name##_attr = \
|
static struct kobj_attribute _name##_attr = \
|
||||||
__ATTR(_name, 0644, _name##_show, _name##_store)
|
__ATTR(_name, 0644, _name##_show, _name##_store)
|
||||||
|
|
||||||
#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
|
#if defined(CONFIG_HOTPLUG)
|
||||||
/* current uevent sequence number */
|
/* current uevent sequence number */
|
||||||
static ssize_t uevent_seqnum_show(struct kobject *kobj,
|
static ssize_t uevent_seqnum_show(struct kobject *kobj,
|
||||||
struct kobj_attribute *attr, char *buf)
|
struct kobj_attribute *attr, char *buf)
|
||||||
|
@ -137,7 +137,7 @@ struct kobject *kernel_kobj;
|
||||||
EXPORT_SYMBOL_GPL(kernel_kobj);
|
EXPORT_SYMBOL_GPL(kernel_kobj);
|
||||||
|
|
||||||
static struct attribute * kernel_attrs[] = {
|
static struct attribute * kernel_attrs[] = {
|
||||||
#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
|
#if defined(CONFIG_HOTPLUG)
|
||||||
&uevent_seqnum_attr.attr,
|
&uevent_seqnum_attr.attr,
|
||||||
&uevent_helper_attr.attr,
|
&uevent_helper_attr.attr,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue