On Tuesday 20 May 2008 19:59:48 Denis V. Lunev wrote:Thanks Denis. This patch masks a deeper problem; looks like you can't load any modules with CONFIG_SYSFS=n: kernel/module.c: int mod_sysfs_init(struct module *mod) { int err; struct kobject *kobj; if (!module_sysfs_initialized) { printk(KERN_ERR "%s: module sysfs not initialized\n", mod->name); err = -EINVAL; goto out; } AFAICT, module_sysfs_initialized is not ever set if !CONFIG_SYSFS. I can't see the point of module_sysfs_initialized. It was introduced by Greg in commit 823bccfc ("remove "struct subsystem" as it is no longer needed"). Greg, what were you trying to do here? Modules can't be loaded before param_sysfs_init(): are you trying to handle the case where the kset_create_and_add() fails? Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| holzheu | Re: [RFC/PATCH] Documentation of kernel messages |
| FUJITA Tomonori | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
| Arjan van de Ven | Re: [GIT]: Networking |
| Evgeniy Polyakov | Re: [BUG] New Kernel Bugs |
