From: Andrew Morton uevent_seqnum and uevent_helper are only defined if CONFIG_HOTPLUG=y, CONFIG_NET=n. Cc: Greg KH Signed-off-by: Andrew Morton --- kernel/ksysfs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN kernel/ksysfs.c~gregkh-driver-kobject-fix-build-error-if-config_sysfs-n-fix kernel/ksysfs.c --- devel/kernel/ksysfs.c~gregkh-driver-kobject-fix-build-error-if-config_sysfs-n-fix 2006-03-18 01:22:47.000000000 -0800 +++ devel-akpm/kernel/ksysfs.c 2006-03-18 01:22:47.000000000 -0800 @@ -22,7 +22,7 @@ static struct subsys_attribute _name##_a static struct subsys_attribute _name##_attr = \ __ATTR(_name, 0644, _name##_show, _name##_store) -#ifdef CONFIG_HOTPLUG +#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) /* current uevent sequence number */ static ssize_t uevent_seqnum_show(struct subsystem *subsys, char *page) { @@ -52,7 +52,7 @@ decl_subsys(kernel, NULL, NULL); EXPORT_SYMBOL_GPL(kernel_subsys); static struct attribute * kernel_attrs[] = { -#ifdef CONFIG_HOTPLUG +#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) &uevent_seqnum_attr.attr, &uevent_helper_attr.attr, #endif _