netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ethertap module_param
@ 2004-07-28 18:39 Stephen Hemminger
  2004-07-29  2:16 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-07-28 18:39 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Change ethertap to use module_param

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

diff -Nru a/drivers/net/ethertap.c b/drivers/net/ethertap.c
--- a/drivers/net/ethertap.c	2004-07-23 13:29:32 -07:00
+++ b/drivers/net/ethertap.c	2004-07-23 13:29:32 -07:00
@@ -13,7 +13,7 @@
  
 #include <linux/config.h>
 #include <linux/module.h>
-
+#include <linux/moduleparam.h>
 #include <linux/kernel.h>
 #include <linux/jiffies.h>
 #include <linux/slab.h>
@@ -45,7 +45,7 @@
 static int ethertap_debug;
 
 static int max_taps = 1;
-MODULE_PARM(max_taps, "i");
+module_param(max_taps, int, 0);
 MODULE_PARM_DESC(max_taps,"Max number of ethernet tap devices");
 
 static struct net_device **tap_map;	/* Returns the tap device for a given netlink */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ethertap module_param
  2004-07-28 18:39 [PATCH] ethertap module_param Stephen Hemminger
@ 2004-07-29  2:16 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-07-29  2:16 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On Wed, 28 Jul 2004 11:39:10 -0700
Stephen Hemminger <shemminger@osdl.org> wrote:

> Change ethertap to use module_param

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-29  2:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-28 18:39 [PATCH] ethertap module_param Stephen Hemminger
2004-07-29  2:16 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).