diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-24 06:18:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:31 -0500 |
commit | f125b56113be4956867cc9bd098bb99b1b9bb93f (patch) | |
tree | ffb7715fa4b729dab0546df887065718f36fba85 /kernel | |
parent | 0cb409d98e351e6817e0bc37fe6815fc14b2c036 (diff) |
[PATCH] fix build error if CONFIG_SYSFS=n
uevent_seqnum and uevent_helper are only defined if CONFIG_HOTPLUG=y,
CONFIG_NET=n.
(I stole this back from Greg's tree - it makes allnoconfig work).
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/ksysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c index f2690ed74530..f119e098e67b 100644 --- a/kernel/ksysfs.c +++ b/kernel/ksysfs.c | |||
@@ -22,7 +22,7 @@ static struct subsys_attribute _name##_attr = __ATTR_RO(_name) | |||
22 | static struct subsys_attribute _name##_attr = \ | 22 | static struct subsys_attribute _name##_attr = \ |
23 | __ATTR(_name, 0644, _name##_show, _name##_store) | 23 | __ATTR(_name, 0644, _name##_show, _name##_store) |
24 | 24 | ||
25 | #ifdef CONFIG_HOTPLUG | 25 | #if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) |
26 | /* current uevent sequence number */ | 26 | /* current uevent sequence number */ |
27 | static ssize_t uevent_seqnum_show(struct subsystem *subsys, char *page) | 27 | static ssize_t uevent_seqnum_show(struct subsystem *subsys, char *page) |
28 | { | 28 | { |
@@ -52,7 +52,7 @@ decl_subsys(kernel, NULL, NULL); | |||
52 | EXPORT_SYMBOL_GPL(kernel_subsys); | 52 | EXPORT_SYMBOL_GPL(kernel_subsys); |
53 | 53 | ||
54 | static struct attribute * kernel_attrs[] = { | 54 | static struct attribute * kernel_attrs[] = { |
55 | #ifdef CONFIG_HOTPLUG | 55 | #if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) |
56 | &uevent_seqnum_attr.attr, | 56 | &uevent_seqnum_attr.attr, |
57 | &uevent_helper_attr.attr, | 57 | &uevent_helper_attr.attr, |
58 | #endif | 58 | #endif |