Patch: delete dv_init from linux-2.6.0-test9-bk13/net/core/dv.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	It looks like the module initialization function
dv_init() in linux-2.6.0-test9-bk13/net/core/dv.c is equivalent
to having no module initialization function.

	The existence of the module_init() call impededes
modularization of CONFIG_NET, because there is already a
subsys_init() call in net/core/dev.c, and there is currently
mutual dependence that prevents these files from being different
modules.

	Here is the patch.  If it looks OK, I would appreciate it
if the appropriate person (Dave Miller?) could queue it for
Linus for the next code thaw.  If I should resubmit this later,
just let me know.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America


--- linux-2.6.0-test9-bk13/net/core/dv.c	2003-10-25 11:43:32.000000000 -0700
+++ linux/net/core/dv.c	2003-11-09 02:56:04.000000000 -0800
@@ -39,12 +39,6 @@
 
 const char sysctl_divert_version[32]="0.46";	/* Current version */
 
-static int __init dv_init(void)
-{
-	return 0;
-}
-module_init(dv_init);
-
 /*
  * Allocate a divert_blk for a device. This must be an ethernet nic.
  */
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux