Gack... We have
subsys_initcall(chrdev_init);
in fs/char_dev.c
and
core_initcall(netlink_proto_init);
in net/netlink/af_netlink.c
Guess which one wins... What a mess... How about the following (untested,
but AFAICS should work)
diff -urN linux/fs/char_dev.c linux2/fs/char_dev.c
--- linux/fs/char_dev.c Sun May 25 08:01:46 2003
+++ linux2/fs/char_dev.c Sun May 25 17:26:04 2003
@@ -457,11 +457,9 @@
return NULL;
}
-static int __init chrdev_init(void)
+void __init cdev_init(void)
{
subsystem_register(&cdev_subsys);
kset_register(&kset_dynamic);
cdev_map = kobj_map_init(base_probe, &cdev_subsys);
- return 0;
}
-subsys_initcall(chrdev_init);
diff -urN linux/fs/dcache.c linux2/fs/dcache.c
--- linux/fs/dcache.c Sat May 24 18:49:58 2003
+++ linux2/fs/dcache.c Sun May 25 17:25:40 2003
@@ -1606,6 +1606,7 @@
EXPORT_SYMBOL(d_genocide);
extern void bdev_cache_init(void);
+extern void cdev_init(void);
void __init vfs_caches_init(unsigned long mempages)
{
@@ -1626,4 +1627,5 @@
files_init(mempages);
mnt_init(mempages);
bdev_cache_init();
+ cdev_init();
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/